simple_wt_metatags
The Simple WT Metatags module provides a lightweight and configurable solution for managing essential SEO and Open Graph (OG) tags on your Drupal website.
Unlike comprehensive SEO modules, Simple WT Metatags focuses specifically on a streamlined set of crucial metatags. It allows site builders to map existing fields on node and taxonomy entities—and define global fallbacks for non-entity pages like Views—to perfectly populate the following tags:
<meta name="description">
<meta property="og:title">
<meta property="og:description">
<meta property="og:image">
<link rel="canonical">
Features
- Universal Canonical URL Fallback: Automatically generates and injects a smart
<link rel="canonical">tag on all frontend routes (including taxonomy terms, custom Views, and the frontpage) to prevent "Duplicate content" warnings in Google Search Console. It includes a built-in safety check to gracefully yield if Drupal core has already placed a canonical tag. - Populates Open Graph Title: Extracts the exact page title (from the Node title or Taxonomy term name) to output the
<meta property="og:title">tag. - Configurable Meta & OG Description: Specify a text (plain, long) field (e.g., field_summary) on your node content types and taxonomy vocabularies to serve as the exact source for both the HTML
<meta name="description">and<meta property="og:description">tags. - Smart Description Truncation: Meta and Open Graph descriptions are strictly limited to 200 characters. We utilize Drupal's word-safe truncation, meaning your descriptions will elegantly end with an ellipsis (...) without ever chopping words in half.
- Configurable Open Graph Image: Select an image media reference field (e.g., field_featured_image) on your node content types and taxonomy vocabularies to output the primary Open Graph image (
<meta property="og:image">). - Global Fallbacks: Define a site-wide default meta description and Open Graph image URL to be used when a specific node or term lacks data in its mapped fields.
- Expanded Page Support: Applies your global fallback tags to non-entity pages, such as Drupal Views, the frontpage, and custom routes.
- Includes Related OG Tags: Outputs all the associated data for the mapped image, including
og:image:width,og:image:height,og:image:secure_url, andog:image:alt. - Token Support: The meta description field supports Drupal tokens, allowing for dynamic content mapping.
- Lightweight: Focuses strictly on core functionality without adding unnecessary overhead to your database or site performance.
Post-Installation
- Drupal 11.2
- Media (core module) - Required if using the Open Graph image functionality.
Additional Requirements
Doesn't need anything beyond Drupal core (include any dependent modules, libraries, APIs, etc.)
Recommended modules/libraries
At this time doesn't exist any projects that enhance or improve the functionality of this project.
Similar projects
The great Metatag module. Simple WT Metatags, unlike comprehensive SEO modules, focuses specifically on a streamlined set of crucial metatags. It allows site builders to select existing fields on **node and taxonomy entities** to populate the `<meta name="description">`, `<meta property="og:title">`, `<meta property="og:description">`, and `<meta property="og:image">` tags.
Simple WT Metatags Settings
This module allows you to easily configure essential meta tags for your "Node" and "Taxonomy term (View)" pages, as well as global pages.
Navigate to Configuration > Search and metadata > Simple WT Metatags Settings (/admin/config/search/simple-wt-metatags). Below, enter the machine names of the fields you want to use to populate the:
- Meta Description and Open Graph Description (og:description)
- Open Graph Image (og:image, og:image:secure_url, og:image:width, og:image:height, og:image:alt)
Note: The Open Graph Title (og:title) is populated directly from the page title.
Important Field Requirements:
- For the Meta Description, add (or use an existing field) a "Text (plain, long)" field on your "Content type / Node" & "Vocabulary / Taxonomy term".
- For the Open Graph Image, add (or use an existing field) a "Media (image)" reference field (Allowed number of values: Limited=1) on your "Content type / Node" & "Vocabulary / Taxonomy term".
- Ensure the fields you specify exist on your entities and contain data for the metatags to appear.
Fallback / Default Settings (Optional):
- You can also configure a Default Meta Description and Default Open Graph Image URL.
- These default values will automatically apply to non-entity pages (like Views) or any nodes/terms where the specific mapped fields are left empty.
For further information, you can also read the README.txt that comes together with the module files.