Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.This module provides a way to override the visible page heading (<h1> tag - internally called "page_title" by Drupal, not to be confused with the <title> tag) keeping the entity label, by using the wonderful Metatags token functionality.
This module is typically useful, if the visible page title should differ from the entity label.
So if your entity is for example a "Job" node bundle entity, called "Drupal Developer" you can use "Great [node:title] Job" to get <h1>Great Drupal Developer Job</h1> as page title for SEO and your users! 🚀
Please note:
This module overrides the title using "hook_preprocess_page_title". This means that all twig title theming (e.g. h1 child elements / classes) provided by themes, will be overridden and lost! See #3466576: Allow altering the page title (text) before it is passed to the theming layer.
If that's a problem in your case, consider https://www.drupal.org/project/node_title_ps as a lightweight alternative.
Features
Implements a new "page_heading" metatag which can be used to overwrite the page heading for contents, taxonomy terms and more (everywhere metatags can be used).
Note, that the "page_heading" metatag won't be used as an actual <meta> tag. But instead, it uses the Drupal metatag module infrastructure to attach to the desired page.
Post-Installation
Once the module is installed, a new "Page Heading" metatag group will appear, which provides the new "Page heading (h1)" metatag.
Additional Requirements
This module requires the Metatag module.
Similar projects
- https://www.drupal.org/project/node_title_ps - Only supports Node and Taxonomy terms
- https://www.drupal.org/project/alter_route_title - Alter the route title
- Automatic Entity Label - modifies the label itself, which is a different approach for other use cases
- https://www.drupal.org/project/custom_page_title - Overwrite the node title on certain paths
- https://www.drupal.org/project/exclude_node_title - Remove the page title on certain paths
- https://www.drupal.org/project/node_display_title - Provide a separate admin title and user-facing title
Extending modules
- https://www.drupal.org/project/title_html - If you need HTML in your page title
Supporting this module
Support DROWL's ♥ FOSS work on this module on OpenCollective!
Drupal and this module are FOSS. However, it takes dedicated people to develop and maintain. And they need YOU to give back!
We're committed to building and maintaining Drupal modules that benefit the entire community.
Supporting us on OpenCollective helps us continue to improve, innovate and contribute to Drupal's future. Every pledge makes a difference!
If this module has helped you, we would be very grateful for your donation to support its further development and maintenance.
Support our FOSS development ♥️
You can also speed up the development of features or bugfixes you'd love to see, by sponsoring and giving back!
Let's make Drupal even better, together!
Development proudly sponsored by German Drupal Friends & Companies:
webks: websolutions kept simple (https://www.webks.de)
and
DROWL: Drupalbasierte Lösungen aus Ostwestfalen-Lippe (OWL), Germany (https://www.drowl.de)
Project information
- Project categories: Search engine optimization (SEO)
18 sites report using this module
- Created by grevil on , updated
Stable releases for this project are covered by the security advisory policy.
There are currently no supported stable releases.
Releases
Development version: 1.x-dev updated 17 Oct 2025 at 13:48 UTC




