AnswerFix

How to Add Schema Markup to Wix

The exact click path for adding JSON-LD schema markup on Wix, the Premium plan requirement, and how to use Wix's editable robots.txt file.

Updated September 21, 2026

Wix is a hosted website builder where custom code is added through a dashboard panel rather than a theme file, and it requires a paid plan before that code will run at all.

Plan requirement

Custom code on Wix requires a Premium plan with a connected domain. On the free plan, the Custom Code panel exists in the dashboard, but the code does not run on the live site. Wix ties code snippets to a specific domain, and states that if you assign a different domain to your site, your snippets will be deleted rather than moved, so treat schema code as something you may need to re-add if you change domains.

Click path

1. From your site's dashboard, go to Settings. 2. Under Development & integrations, click Custom Code. 3. Click Add Custom Code, usually in the top right. 4. Paste your JSON-LD script, including the opening and closing script tags. 5. Name the snippet so you can find it later. 6. Under Add Code to Pages, choose All pages or specific pages. 7. Under Place Code in, choose Head. Body start and body end are also offered, but schema markup belongs in the head. 8. Click Apply, then publish the site.

Schema needs to run once per page and does not interact with anything visible, so Head placement with a specific pages scope is usually right for a single LocalBusiness or Product entry, with a separate sitewide Organization snippet if you need one on every page.

The robots.txt editor

Wix sites include an editable robots.txt file, more flexible than several competitors. To reach it, go to SEO & GEO in the dashboard, scroll to Tools and settings, and click Robots.txt Editor, then View File. You can add or change directives directly and click Save Changes. Wix's own documentation calls this an advanced feature and states support cannot help you fix mistakes you introduce, so change one directive at a time and check the site is still crawlable afterward.

What is not possible

Wix's Custom Code panel only accepts code in the head or body start and end of the page; it does not give access to server response headers, so you cannot set an X-Robots-Tag header from the dashboard, only meta robots tags and the robots.txt file. There is no built in schema generator in the core Wix editor either. Wix Studio and certain apps in the Wix App Market add schema templates, but the core editor expects you to write or paste your own JSON-LD.

How to verify

After publishing, view the live page's source and confirm your application/ld+json block appears once, in the head, with the fields you expect. Run the URL through a structured data testing tool, since Wix does not validate the JSON before publishing. Use the Local Business Schema Generator to produce clean JSON-LD you can paste straight into the Custom Code panel, then check what crawlers actually see with the AI Crawler Checker. If you also want an llms.txt file for AI answer engines, the llms.txt Generator produces one you can upload through Wix's file manager. Get a full read on where you stand at /#score.

Related tools

Frequently asked questions

Can I add schema markup on a free Wix plan?
No. The Custom Code panel is visible on the free plan, but the code does not execute on the published site. You need an active Premium plan with a connected domain before any custom head or body code, including JSON-LD schema, actually runs.
Where in Wix do I place JSON-LD schema code?
Settings, then Custom Code under Development & integrations, then Add Custom Code. Paste the full script tag and choose Head as the placement. Head is correct for schema because it needs to load once and does not touch anything visible on the page.
Can I edit robots.txt directly on Wix?
Yes. Go to SEO & GEO in your dashboard, scroll to Tools and settings, and open the Robots.txt Editor. This is more flexible than platforms that auto generate the file, but Wix warns it is an advanced feature and will not troubleshoot mistakes you introduce.
What happens to my custom code if I change my Wix domain?
It gets deleted. Wix ties custom code snippets to the specific domain connected at the time you added them. Reconnecting a different domain, or letting your Premium plan lapse, removes the snippets, so you would need to re-add your schema afterward.

Sources

Check your business

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