Solving the mystery of missing Meta Tags on your Drupal frontpage

Meta tags play a crucial role in SEO and social sharing, so it's essential to ensure they are set correctly. In this blog post, we'll discuss how to troubleshoot and resolve the issue of meta tags not appearing on your Drupal 9 front page.

First and foremost, it's essential to understand that there could be several reasons why your front page meta tags are not displaying correctly. Let's explore the most common scenario and how to fix it.

Frontpage meta tags configuration not set properly

The most frequent cause of front page meta tags not showing up is that the "Front page" section of Metatag settings is not set. To fix this, follow these steps:

  • Navigate to Configuration -> Search -> Metatag (/admin/config/search/metatag) in your Drupal admin dashboard.
  • Click "Edit" next to the "Front page" section.
  • From this page, you have two options:
  1. Use "hardcoded" metatags in fields like the title and description. This method is suitable for cases where you want the front page's meta tags to be unique, as they won't display on more than one page.
  2. Alternatively, you can disable the "active" checkmark of the "front page metatags" section. This action will cause Drupal to rely on another configuration, such as its node type, for the front page meta tags.

After making your desired changes, click "Save."

Content meta tags need resaving

Resaving the "content metatags" (/admin/config/search/metatag/node?destination=/admin/config/search/metatag) should now cause the images to appear on the front page.

Advanced or open graph metatags not appearing on your content type?

In this case you should enable your content types at /admin/config/search/metatag/settings. This seems like a new setting.