How to Fix Missing Open Graph Tags on Every Page
Open Graph tags are meta tags in the <head> that tell social networks, messaging apps and some AI tools which title, description, image and URL to show when someone shares a link. This check flags pages that lack them. By the end of this guide, every page template on your site will output og:title, og:description, og:image, og:url and a Twitter/X card tag, and you will have confirmed the result with the platforms' own preview tools.
Why it matters
Without Open Graph tags, LinkedIn, Facebook, Slack, WhatsApp, iMessage and Discord guess the preview. They often pull a random image, a cookie banner, or no image at all, and a truncated title. Shared links with a clean 1200×630 image and a clear title get noticeably more clicks, and those visits drive branded searches and links. OG tags are not a direct Google ranking factor. They are still an inexpensive signal that keeps your page's identity consistent everywhere it gets quoted, including link-unfurling AI assistants.
What you need
Step-by-step fix
Find which pages are missing Open Graph tags
The audit checks every crawled page, not just the homepage. A few untagged templates, such as blog posts or tag archives, can fail it. Spot-check one URL from each page type by viewing its raw source. Do not use the browser inspector, which shows JavaScript-modified HTML. Note which templates return nothing or are missing one of the four tags.
curl -s https://example.com/ | grep -iE 'og:(title|description|image|url)|twitter:card' curl -s https://example.com/blog/sample-post | grep -iE 'og:|twitter:card'
Create a 1200×630 default share image
Design one fallback image at 1200×630 px (a 1.91:1 ratio). Put your logo and a short line of text inside the central safe area, because some apps crop the edges to a square. Export it as PNG or JPG under 5 MB. Upload it to a public, permanent URL such as https://example.com/og-image.png. Avoid SVG and WebP for this file, because several platforms ignore them.
Map each tag to existing page data
Do not hard-code one title for the whole site. Pull each value from data the page already has:
- og:title: the page's headline or title, without the " | Example Co" suffix
- og:description: the meta description, about 110–160 characters
- og:image: the featured or product image, otherwise the default image
- og:url: the canonical URL of the page
Add the tags to the shared <head> template
Edit the layout file that every page uses (header, base layout or theme layout), not individual pages. Use the property attribute for og: tags and name for twitter: tags. og:image and og:url must be absolute https URLs. The example below is static HTML; replace the values with your template variables.
<!-- inside <head> of the shared layout --> <meta property="og:type" content="website"> <meta property="og:site_name" content="Example Co"> <meta property="og:title" content="Pricing plans for small teams"> <meta property="og:description" content="Compare Example Co plans and start a 14-day free trial."> <meta property="og:url" content="https://example.com/pricing"> <meta property="og:image" content="https://example.com/og-image.png"> <meta property="og:image:width" content="1200"> <meta property="og:image:height" content="630"> <meta property="og:image:alt" content="Example Co pricing overview"> <meta name="twitter:card" content="summary_large_image">
Remove duplicate or conflicting tags
Once your theme, SEO plugin and any app all output OG tags, you may get two og:title or og:image tags. Platforms then pick one unpredictably. Search the page source for duplicates. Keep a single source, usually the SEO plugin or the theme snippet, and disable the others.
curl -s https://example.com/ | grep -ic 'property="og:title"'
Deploy, clear caches and validate the previews
Publish the change and purge any page cache or CDN. Then paste several URLs, one per page type, into these tools:
- Facebook Sharing Debugger: click "Scrape Again" to refresh its cached preview.
- LinkedIn Post Inspector: this also refreshes LinkedIn's cache.
Finally, re-run the audit to confirm every crawled page passes.
Platform-specific notes
WordPress
Install Yoast SEO or Rank Math rather than editing header.php. In Yoast, go to Yoast SEO → Settings → Site features and make sure 'Open Graph data' is on. Set a default image under Settings → Site representation and per-post values in the Social tab of the post editor. In Rank Math, use Titles & Meta → Global Meta → OpenGraph Thumbnail and the Social tab per post. Only run one SEO plugin at a time.
Shopify
Most Online Store 2.0 themes, Dawn included, already output OG tags through snippets/meta-tags.liquid. Check that layout/theme.liquid contains {% render 'meta-tags' %}. Set the fallback image under Online Store → Preferences → Social sharing image. If you write the tags yourself, use {{ page_title }}, {{ page_description }}, {{ canonical_url }} and {{ page_image | image_url: width: 1200 | prepend: 'https:' }}.
Next.js (App Router)
Export a metadata object or a generateMetadata() function with openGraph and twitter keys from each page or layout. Set metadataBase: new URL('https://example.com') in the root layout, or relative image paths will not become absolute URLs. You can also drop an opengraph-image.png (1200×630) into a route folder, and Next.js generates the tags automatically.
Wix
Open the editor, go to Pages & Menu, choose a page, then ⋯ → SEO basics → Social share. Upload the image and set the title and description there. For dynamic pages such as blog posts and products, edit the SEO settings in the Wix dashboard under Marketing & SEO → SEO → SEO Settings, per page type.
Webflow
In the Designer, open Pages → the page's settings (gear icon) → Open Graph settings. Upload the image and toggle 'Same as SEO title/description' if appropriate. For CMS collection templates, bind og:title, og:description and the image to collection fields so every item gets its own values.
Check that it worked
✅ How to verify
- Run curl -s https://example.com/your-page | grep -iE 'og:|twitter:card' on one URL per template and confirm all four og: tags plus twitter:card appear exactly once.
- Paste URLs into the Facebook Sharing Debugger and LinkedIn Post Inspector, and confirm the image loads at 1200×630 with no warnings about missing properties.
- Open the og:image URL directly in a private browser window and confirm it returns the image (HTTP 200), not a login page or 404.
- Re-run the site audit and confirm the Open Graph check no longer lists any pages.
⚠️ Common mistakes
- Using relative paths like /og-image.png in og:image or og:url. Most scrapers require full https:// URLs.
- Hard-coding the homepage title and image into the shared header, so every page shares the same preview.
- Injecting OG tags with JavaScript or Google Tag Manager. Social crawlers read raw HTML only, so the tags are invisible to them.
- Adding tags only to the homepage and forgetting blog, product, category or landing-page templates that the audit also crawls.
Is this still an issue on your site? Run a free audit — ZORO checks this and 294 other SEO, AI-visibility, accessibility and security signals, with fixes for your platform.
Check my site freeFAQ
What size should an Open Graph image be?
Use 1200×630 pixels (1.91:1 ratio) in PNG or JPG, under 5 MB. Facebook, LinkedIn, X and Slack all render this size well. Keep text and logos away from the edges, because some apps crop to a square.
Do Open Graph tags help SEO rankings?
Not directly. Google does not use them as a ranking factor. They control how your links look when shared, which affects click-through from social posts, chats and some AI tools that unfurl links. That traffic and visibility indirectly supports your site.
Do I still need Twitter card tags if I have Open Graph tags?
X falls back to og:title, og:description and og:image. You still need <meta name="twitter:card" content="summary_large_image"> to get the large image layout instead of a small thumbnail.
Why is LinkedIn or Facebook still showing my old preview?
Both platforms cache previews. Paste the URL into LinkedIn Post Inspector or the Facebook Sharing Debugger and click 'Scrape Again' to force a refresh. Also purge your CDN or page cache so the crawler gets the updated HTML.