This is the most technically important lesson in the entire course. Every structured data type covered in subsequent lessons relies on this foundation: how to add JSON-LD code to your Wix site using the Custom Code feature.
Finding Custom Code in Wix
Navigate to Custom Code in Wix
- 1Log in to your Wix dashboard
- 2Go to Settings in the left sidebar
- 3Scroll down to "Advanced" and click "Custom Code"
- 4You will see three tabs: Head, Body Start, Body End
- 5For SEO schema markup, always use the "Head" section
Adding Site-Wide vs Page-Specific Schema
Wix Custom Code lets you add code to: All pages (site-wide), specific pages only, or all pages except specific pages. For Organization or LocalBusiness schema (which describes your whole business), add it site-wide. For FAQ schema on a specific service page, add it to that page only.
Adding Your First JSON-LD Block
Step-by-step: adding schema to Wix
- 1Go to Settings > Custom Code > Head
- 2Click "+ Add Custom Code"
- 3Name the code snippet (e.g. "Organization Schema")
- 4In the code field, paste your JSON-LD code (wrapped in <script> tags)
- 5Under "Add Code to Pages", choose "All Pages" for site-wide schema or specific pages
- 6Under "Place Code in", choose "Head"
- 7Click Apply and then publish your site
- 8Test the implementation at search.google.com/test/rich-results
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Organization",
"name": "Your Business Name",
"url": "https://www.yourdomain.com"
}
</script>Always Test First
Before publishing any schema code on your live Wix site, paste the JSON-LD (without the script tags) into validator.schema.org to check for errors. Then test the live URL in search.google.com/test/rich-results after publishing.
Complete How-To Guide: Adding JSON-LD Schema to Any Wix Page
This step-by-step guide covers the entire process of creating, validating, and deploying JSON-LD schema markup on your Wix site using the Custom Code feature.
Follow these steps to add JSON-LD schema to any Wix page
- 1Write your JSON-LD code or generate it using a tool like technicalseo.com/tools/schema-markup-generator
- 2Validate the code by pasting it into the Rich Results Test at search.google.com/test/rich-results before adding to Wix
- 3In your Wix Dashboard go to Settings > Custom Code (under Advanced)
- 4Click Add Custom Code at the top right
- 5Paste your complete JSON-LD code including the script tags into the code box
- 6Name the code snippet descriptively like Homepage Organization Schema
- 7Set Place Code In to Head
- 8Under Pages choose whether to apply it to All Pages (for site-wide schema like Organization) or Specific Pages Only
- 9If applying to specific pages select the exact pages from the dropdown
- 10Click Apply and then publish your Wix site
- 11Return to the Rich Results Test and enter your live page URL to verify the schema appears correctly
- 12Check Google Search Console Enhancements section after a few days to confirm Google has detected your schema
- 13Repeat for each schema type on your implementation plan
Final Checkpoint
Every schema snippet should pass the Rich Results Test with zero errors. Check GSC Enhancements within a week to confirm detection. If errors appear fix the code and republish.
Essential Resources
Google Rich Results Test
Test and validate structured data markup on your Wix pages
Schema Markup Validator
Validate your JSON-LD structured data code before adding it to your Wix site
Wix Custom Code
How to add custom code including JSON-LD schema markup to your Wix site
Schema Markup Generator
Generate JSON-LD structured data code for any schema type without manual coding
