AnswerFix

How to Add Schema Markup to Webflow

How to add JSON-LD schema through Webflow's custom code settings, the plan tier required, and how to use the built in robots.txt editor.

Updated September 21, 2026

Webflow is a website builder aimed at designers that gives you three separate places to add custom code, plus a native robots.txt editor built into site settings rather than a raw text file.

Plan requirement

Custom code in Webflow requires a paid site plan; the free Starter tier does not support it. You also need a custom domain connected for the robots.txt editor to appear in settings, since Webflow generates the file per published domain.

Click path for site wide schema

1. Open your project and go to Site settings. 2. Click the Custom Code tab (or the newer Scripts section, which writes to the same output). 3. Paste your script tag with type application/ld+json into the Head Code field for site wide Organization or WebSite schema. 4. Click Save, then publish the site for the change to go live. Saving alone does not push it to the published domain.

Click path for one page

1. Open the page in the Pages panel, click the settings gear next to it. 2. Scroll to Custom Code and paste your JSON-LD into the Inside `<head>` tag field for that page only. 3. Save and publish.

Use Page settings custom code for anything specific to one location or product, such as a LocalBusiness block for a single storefront page, and reserve Site settings custom code for schema that genuinely belongs on every page. An Embed element dropped directly into the page layout is a third option, but it is meant for code that needs to sit at a specific position in the visual layout, not head level JSON-LD.

The robots.txt editor

Go to Site settings, then SEO, then Indexing. This panel holds the robots.txt rule editor alongside sitemap and canonical URL settings. Add, edit, or remove User agent, Disallow, Allow, and Sitemap lines, and preview the resulting file before saving. The same panel includes Traffic Control toggles that auto generate rules for groups of known AI bots, and a separate Content Signal control for stating whether your content can be used for AI training or search indexing.

What is not possible

Webflow's custom code fields only accept HTML, CSS, and JavaScript, with character limits per field, so you cannot run server side code or set response headers from the dashboard. The robots.txt editor and the AI Traffic Control toggles both require a paid Site Plan and a connected custom domain; on the free Starter tier or a webflow.io staging subdomain, neither the custom code fields nor the robots.txt editor will apply to a live, indexable site.

How to verify

Publish the site, then view the live page's source to confirm your application/ld+json block appears once, in the head, and matches what you pasted. Run the page through a structured data testing tool, since Webflow does not validate the JSON syntax before publishing. Visit yourdomain.com/robots.txt directly to confirm the Indexing panel rules rendered as expected, then check what crawlers actually see with the AI Crawler Checker. Build the JSON-LD itself with the Local Business Schema Generator, and get your overall score at /#score.

Related tools

Frequently asked questions

Can I add schema markup on Webflow's free plan?
Not on a live, indexable site. Custom code requires a paid Site Plan, and the robots.txt editor and AI crawler toggles both require a connected custom domain, so a free Starter project on a webflow.io subdomain cannot fully implement or serve either feature.
Where should site wide schema go versus page specific schema?
Site wide schema, like Organization, belongs in Site settings, Custom Code, Head Code. Schema specific to one page, like a LocalBusiness block for a single location, belongs in that page's own settings gear, under Custom Code, in the Inside head tag field.
Does saving custom code in Webflow publish it immediately?
No. Saving stores the code in the project, but it only appears on the live site after you publish. This trips people up when they check the source of the published domain right after saving and still see the old head section.
How do I edit robots.txt in Webflow?
Go to Site settings, then SEO, then Indexing. This panel lets you add or edit User agent, Disallow, Allow, and Sitemap lines with a live preview before saving, plus Traffic Control toggles for blocking groups of known AI crawlers.

Sources

Check your business

See whether ChatGPT and Perplexity already recommend you, free, with no card and no sales call.