Documentation sections

Fix a missing search description or share preview

Write a short, specific description of the page. Google may use it in its search snippet. Sharing apps use Open Graph tags to choose the title, image and address for a preview.

Set the values in Drupal

With Metatag enabled, open Configuration → Search → Metatag and edit the Front page defaults. Set Description. Use the Metatag Open Graph submodule for the title, type, image and URL. Use the public URL and an image that a signed-out visitor can open.

Drupal front page instructions

Set the values in HTML

Put these tags in the page head. Replace the text, page URL and image URL with your own. Both og:image and og:image:url declare an Open Graph image.

<meta name="description" content="Garden Studio designs and builds small urban gardens.">
<meta property="og:title" content="Garden Studio">
<meta property="og:type" content="website">
<meta property="og:url" content="https://example.org/">
<meta property="og:image" content="https://example.org/garden.jpg">
<meta property="og:image:alt" content="A planted terrace with a wooden bench">
Open Graph properties

Check the published page

Open View page source on the public URL and check the tag values. If old values remain, check the setting for that page and clear any relevant Drupal or CDN cache. Run the same URL through the free checker again and confirm the metadata finding clears.

Check a public URL