Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Metatag: Page Heading

Security covered Under active development 21 sites

Part of the Metatag ecosystem · 16 projects

This module allows you to customize the main heading (H1 tag) on your pages, separate from the entity's label. It uses the Metatag module's token system to dynamically generate page headings, making it useful when you need the displayed title to differ from the underlying content title.

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

Extending modules

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!

Sponsor a feature or bugfix 🚀

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)

Ask your assistant about Metatag: Page Heading

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
5
Tracked since
Aug 2024
Latest release
11 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Slowing

Release Timeline

Releases

Version Type Core PHP Release date
1.0.0-beta4 Pre-release 10–11 Oct 17, 2025
1.0.0-beta3 Pre-release 10–11 Aug 8, 2024
1.0.0-beta2 Pre-release 10–11 Aug 7, 2024
1.0.0-beta1 Pre-release 10–11 Aug 7, 2024
1.x-dev Dev 10–11 Aug 7, 2024