Social Meta Tags
File:
snippets/social-meta-tags.liquid
Screenshot not yet added.
Save as
Save as
docs/src/assets/screenshots/snippet-social-meta-tags.pngDescription
Social Meta Tags
Generates Open Graph and Twitter Card meta tags for social media sharing. Dynamically adjusts meta content based on the current template (product, article, collection, or password). Outputs og:title, og:type, og:url, og:description, og:image tags, and Twitter card meta tags.
Features:
- Open Graph meta tags (title, type, URL, description, image)
- Template-specific overrides for product, article, collection, password
- Product availability and price meta properties
- Multiple og:image tags for products (up to 3 images)
- Image dimensions (width/height) in og:image tags
- Twitter card meta tags (site, card type, title, description)
- Fallback to shop description and share_image from theme settings
Usage
{% render 'social-meta-tags' %}