When creating your own custom content type it's important to remember the site does not automatically assign the recommended settings for use by meta tags and you'll want to manually add this to your site to optimize the page's contents and media for best performance.
Add your custom page to the MetaTag section
- Navigate to Manage » Configuration » Search and metatag section » Metatag.
- Click the + Add default meta tags button.
- From the Type drop-down menu, locate your custom page under the Content heading in the list.
- Expand the Open Graph panel and copy and paste the square bracket information into the following fields:
- Site name:
- [site:name]
- Site title:
- [current-page:title]
- Description:
- [node:summary]
- Image:
- [node:field_sf_m_primary_media:entity:field_media_image:sf_landscape_16x9:url]
- Image URL:
- [node:field_sf_m_primary_media:entity:field_media_image:sf_landscape_16x9:url]
- Image Height:
- 720
- Image "alt":
- [node:field_sf_m_primary_media:entity:field_media_image:alt]
- You may find other attributes you would like to fill in with tokens or hard-coded values. The above are just the basics to get search results and social media share to behave correctly.
- Site name:
- Scroll to the bottom of the page and click the Save button to finish.