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 static pages, use the exact published URL in the MyOG url parameter. For CMS pages, use a CMS field that contains the absolute canonical URL or bind the page URL value if your setup exposes one.
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.
<meta property="og:image" content="https://api.myog.social/og?url=https%3A%2F%2Fexample.com%2Fpricing&template=screenshot-right" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:image" content="https://api.myog.social/og?url=https%3A%2F%2Fexample.com%2Fpricing&template=screenshot-right" />Replace the encoded example URL with the page's public URL. Encoding https://example.com/pricing becomes https%3A%2F%2Fexample.com%2Fpricing.
Use a CMS field that outputs the encoded absolute URL for the current item.
<meta property="og:image" content="https://api.myog.social/og?url={{wf {"path":"canonical-url","type":"PlainText"} }}&template=screenshot-right" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:image" content="https://api.myog.social/og?url={{wf {"path":"canonical-url","type":"PlainText"} }}&template=screenshot-right" />The field placeholder is illustrative. Insert your actual Webflow CMS field using the field picker in the custom code editor.
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.
For CMS collection pages, add a CMS plain text field such as Canonical URL and populate it with the absolute public URL, then insert that field into the head code. Static pages can use their literal URL.
Start with the MyOG Open Graph Checker, then refresh social platform caches if needed.
Sign up for free and turn Webflow pages into generated social cards.
Already have an account?
cdf733b534ea2f2ed964d150330b323c44837e4f