No-code site builder
Add automatic Open Graph images to Webflow static pages and CMS collection pages with head custom code.
Webflow lets you add custom code in the head globally, per page, and for CMS collection templates.
For CMS pages with ordinary path-only URLs, combine the fixed canonical origin and Collection path with Webflow's native Slug field. New items then get their own image without a manually maintained Canonical URL field.
The CMS recipe supports letters, digits, hyphens and path separators in the canonical path. It does not support query strings, fragments, percent escapes, plus signs or ampersands. Use an encoded per-page URL for those cases and for custom canonical overrides.
Do not use a code embed element inside the page body for OG tags; social crawlers read head metadata from the initial HTML.
MyOG detects page content and branding automatically. The layout only controls image composition.
Use this for a Webflow page with a known published URL.
Preview anonymously. Sign in to get complete install code for your account.
Sign in to get install codeReplace the encoded example URL with the page's public URL. Encoding https://example.com/pricing becomes https%3A%2F%2Fexample.com%2Fpricing.
Use this only for canonical paths made of letters, digits, hyphens and slashes. Insert Slug through Webflow's field picker in both marked positions.
Preview anonymously. Sign in to get complete install code for your account.
Sign in to get install codeREPLACE_WITH_SLUG marks where to insert Webflow's Slug field. Select it and use + Add Field → Slug. Leave no marker in the published source. For other URL shapes, encode the full canonical URL once and use the static-page recipe.
Webflow page settings can already output an Open Graph image. If both Webflow and MyOG emit og:image, social platforms may choose the first value. Use MyOG as the only og:image for pages where you want automatic images.
Use + Add Field in the Collection template's Head code to insert Slug after the fixed public path. Keep url as the final MyOG parameter. A saved letters/digits/hyphens slug needs no query-value escaping; update the fixed prefix if your domain, Collection path or locale changes.
Start with the MyOG Open Graph Checker, then refresh social platform caches if needed.
Create a MyOG account, add your Webflow domain, then start the card trial to serve images.
Already have an account?
379f5379a5705306bcc425895d6a79f1a1883384