Scalable structured data: updating all pages of the same type in one action
Module 6: Technical SEO, Structured Data & Rich Snippets for Wix | Lesson 91 of 683 | 28 min read
By Michael Andrews, Wix SEO Expert UK
When your Wix site has dozens or hundreds of pages of the same type: products, blog posts, booking services, events, manually updating structured data on each page is impossible. This lesson covers every scalable method available on Wix for applying and updating schema markup across entire page types simultaneously.
What you will learn in this Wix SEO lesson
- Using Wix SEO Patterns to apply schema templates to all pages of a type
- Site-wide Custom Code placement for schema that applies to every page
- Using Wix Velo to programmatically generate structured data from database collections
- JSON-LD variables and dynamic field substitution in Wix Custom Code
- Testing scalable schema implementations across a sample of pages
- Updating all instances when schema requirements change without editing each page
When your Wix site has hundreds of pages of the same type, manually updating structured data on each is not viable. Scalable structured data methods let you apply schema once and have it populate correctly across every product, blog post, event or service page automatically.
Method 1: Wix SEO Patterns for Schema Templates
The most accessible scalable method is Wix SEO Patterns combined with Wix's automatic structured data generation. For supported page types (Products, Blog Posts, Events), Wix already generates appropriate schema automatically using page data. Ensure your page data fields are complete and accurate, as the schema quality depends entirely on the data quality in your Wix dashboard.
Method 2: Site-Wide Custom Code Placement
- Wix Custom Code can be set to load on "All Pages" rather than a specific page
- Use JavaScript to detect the page type from document title, URL pattern or body class
- Conditionally render different JSON-LD schema based on detected page type
- This approach works for schema that applies to every page of a type
- Test across multiple pages to ensure conditional logic fires correctly
Method 3: Wix Velo for Database-Driven Schema
Using Velo to generate schema from database collections
- Enable Velo Dev Mode in your Wix editor
- In the page code for a dynamic page template, import wixSeo
- Fetch the current item data from the page's dataset using $w("#dataset").getCurrentItem()
- Build a JSON-LD object dynamically using the fetched data fields
- Use wixSeo.setStructuredData() to inject the schema into the page head
- Test on multiple items in the collection to verify schema accuracy
Updating Schema at Scale When Requirements Change
When Google updates its rich result requirements (as it does periodically), updating scalable schema requires editing one template or one Velo script rather than hundreds of pages. This is the primary advantage of the scalable approach over per-page manual schema. Keep a record of where each schema type is implemented on your Wix site so you can update quickly when Google's documentation changes.
How to Apply a Schema Template to All Pages of a Type Using Wix Custom Code
How to implement scalable structured data across all Wix pages of the same type using Custom Code
- Open your Wix Dashboard and navigate to Settings > Custom Code.
- Click Add Custom Code to create a new code block.
- Set the placement to Head and the loading time to Load once (page fully loads).
- In the Load on field, select All Pages to apply the code across your entire Wix site.
- In the code editor, write a JavaScript conditional that detects the current page type using the document URL pattern. For example, use window.location.pathname.includes('/blog/') to detect blog pages.
- Inside the conditional block, create a JSON-LD object containing the schema properties relevant to that page type, using document.title to populate the name field dynamically.
- Use document.querySelector to pull additional data from visible page elements where needed, such as the article date or author name.
- Create a script element using document.createElement('script'), set its type to "application/ld+json", and set innerHTML to JSON.stringify() of your schema object.
- Append the script element to document.head using document.head.appendChild() to inject the schema into the page.
- Test the implementation by opening a blog post or product page on your live Wix site, pasting the URL into the Google Rich Results Test, and confirming the schema is detected without errors.
My Wix app, SEO Fix in a Box, finds every page with no structured data across your site and adds it in one click, with undo.
Essential Tools for This Lesson
- SEO Fix in a Box: My Wix app. Free to install, it scans your site and shows what needs fixing, and the paid plan writes the fixes from your own Google searches
More lessons in Module 6: Technical SEO, Structured Data & Rich Snippets for Wix
- Wix site speed optimisation: a step-by-step Core Web Vitals guide
- Mobile SEO on Wix: common pitfalls and exactly how to fix them
- What is structured data? JSON-LD vs Microdata vs RDFa, which to use on Wix
- How to add JSON-LD schema markup to any Wix page using Custom Code
- Organisation and LocalBusiness schema: tell Google exactly who you are
- BreadcrumbList schema: how to implement breadcrumbs on Wix and get them in results
- FAQ schema on Wix: boost AI citations and semantic search clarity
- HowTo schema on Wix after Google retired how-to rich results
- Review and AggregateRating schema: star ratings in Google search results
- Article and BlogPosting schema: author, datePublished and E-E-A-T signals
- Product schema for Wix eCommerce: price, availability and rich product listings
- Event schema: show dates and event details directly in Google
- VideoObject schema: get your videos indexed and appearing in video rich results
- Testing and validating schema with Google's Rich Results Test and Schema.org validator
- Duplicate content, canonical tags and Wix pagination
- Wix JavaScript rendering: how Googlebot processes your Wix site differently
- Service, ProfessionalService and SameAs schema for Wix businesses
- 301 redirects, crawl errors, hreflang and robots.txt on Wix
- Using ChatGPT, Claude and AI tools to generate schema, redirects and structured data for Wix
- SpeakableSpecification schema for voice assistants on Wix
- noai and noimageai robots meta tags: controlling AI content usage on Wix
- NLWeb protocol: making your Wix site queryable by AI agents
- Model Context Protocol: your Wix site as an MCP server
- Wix AI-generated structured data for blog posts: automatic schema markup
- Wix robots meta tags deep dive: controlling exactly how Google indexes every page
- Wix INP optimisation in 2026: reducing Interaction to Next Paint below 200ms
- Core Web Vitals field data on Wix: understanding CrUX and real-user metrics
Was this lesson useful?
It takes 1 minute to tell me. The course is free and I want to keep it that way, and your feedback shows me what is working and helps other people find it.
This lesson on Scalable structured data: updating all pages of the same type in one action is part of Module 6: Technical SEO, Structured Data & Rich Snippets for Wix in The Most Comprehensive Complete Wix SEO Course in the World (2026 Edition). Created by Michael Andrews, a Wix Marketplace Legend Partner with 14 years of hands-on experience, 808 completed Wix SEO projects and 461 verified five-star reviews.