How to Fix Missing OG Image Tags on Shopify & WooCommerce
errorThe Problem
Your pages are missing the og:image meta tag, which tells social media platforms which image to show when someone shares your link. Without it, platforms either show no image or pick a random one from your page — often the wrong one.
trending_upWhy It Matters for SEO
Social media posts with images get 2-3x more engagement than text-only posts. When a customer shares your product on Facebook, Instagram, or LinkedIn, the og:image controls what they and their friends see. A missing or wrong image means lost clicks and a less professional appearance.
buildHow to Fix It
- 1
Go to Shopify Admin → Online Store → Themes → Edit Code.
- 2
Open layout/theme.liquid.
- 3
Find the <head> section.
- 4
Add the og:image meta tag using Shopify's Liquid objects.
- 5
For product pages, use the product's featured image. For other pages, use a default brand image.
- 6
Save and test by pasting your URL into Facebook's Sharing Debugger (developers.facebook.com/tools/debug/).
{%- if template contains 'product' -%}
<meta property="og:image" content="{{ product.featured_image | image_url: width: 1200 }}" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
{%- elsif template contains 'collection' -%}
<meta property="og:image" content="{{ collection.image | image_url: width: 1200 | default: settings.share_image | image_url: width: 1200 }}" />
{%- else -%}
<meta property="og:image" content="{{ settings.share_image | image_url: width: 1200 }}" />
{%- endif -%}Related Fix Guides
How to Fix Missing Open Graph Tags on Shopify & WooCommerce
Your pages look bad when shared on social media. Learn how to add Open Graph tags to your Shopify or WooCommerce store for better social sharing.
How to Add Twitter Card Tags to Shopify & WooCommerce
Twitter Card tags make your store links look professional when shared on X/Twitter. Fix missing twitter:card, twitter:title, and twitter:image tags.
Want to check if YOUR store has this issue?
Scan your site for free — get copy-paste fixes in 60 seconds.
searchScan Now — It's Free