Schema and Structured Data · By Platform

How to Add Schema Markup to a Website

Adding schema depends on your platform. Here is how to add schema markup on Squarespace, WordPress and Shopify, the options each offers, and how to keep your structured data valid.

Updated: July 2026
Written by: Andrew Odgers, Managing Director
Reading time: 9 minutes
The short answer

You add schema markup by placing JSON-LD into your pages, with the method depending on the platform. On Squarespace, our core platform, you inject JSON-LD through code blocks or code injection. On WordPress, you use a plugin or add JSON-LD to templates. On Shopify, schema often comes partly from the theme and can be extended with code or apps. Keep it valid by testing after changes, avoiding duplicate markup, and keeping it accurate. Rich results are never guaranteed.

Same JSON-LD, different routes

Adding schema, and doing it on Squarespace

You add schema markup to a website by placing JSON-LD structured data into your pages, either through your platform's tools, code injection, a plugin, or by hand, depending on the platform. The method varies but the JSON-LD is the same; because each platform handles code differently, the right approach depends on whether you are on Squarespace, WordPress, Shopify or another system. On Squarespace, which is our core build platform, you typically add schema by injecting JSON-LD through code blocks or the code injection settings, implementing clean, valid markup this way. It keeps structured data separate and maintainable; because Squarespace supports code injection, JSON-LD can be added reliably without disrupting the design, using the JSON-LD format throughout.

PF 01

Squarespace

Code injection, our core.

PF 02

WordPress

Plugin or templates.

PF 03

Shopify

Theme plus apps or code.

WordPress, Shopify and staying valid

WordPress, Shopify, and keeping schema valid

On WordPress, you can add schema using a dedicated plugin, an SEO plugin that includes schema, or by inserting JSON-LD manually into templates or the header. Plugins make it accessible; because WordPress is flexible, you have several routes, though it is important to avoid duplicate or conflicting markup from multiple plugins. On Shopify, schema often comes partly from the theme, and can be extended by editing theme code or using apps, particularly for product structured data. Themes provide a starting point; because Shopify themes vary, checking what schema already exists and avoiding duplication matters when adding more. You keep schema valid by testing it after adding or changing it, avoiding duplicate markup, keeping it accurate to the page, and re-checking when the site changes. Validation catches problems early; because errors can stop rich results appearing, regular testing is the reliable way to keep structured data working, though rich results are never guaranteed, which is why we always test the markup.

SEO done properly, from £350 a month

Schema done right,
on your platform.

Squarespace is our home turf, and we add clean, valid schema as standard, whatever platform you are on. No plugin clutter, no duplicate markup, just correct structured data that search engines can read.

Everything included in your plan:

Google Maps optimisation Full website management Local SEO campaign AI optimisation (GEO) Facebook, Instagram and LinkedIn Quarterly audits Monthly reporting
£350 per month

One clear retainer. No setup fee.

Frequently asked

Adding schema by platform

How do you add schema markup to a website?
You add schema markup by placing JSON-LD structured data into your pages, either through your platform's tools, code injection, a plugin, or by hand, depending on the platform. The method varies but the JSON-LD is the same. Because each platform handles code differently, the right approach depends on whether you are on Squarespace, WordPress, Shopify or another system.
How do you add schema markup on Squarespace?
On Squarespace, you typically add schema by injecting JSON-LD through code blocks or the code injection settings, and since it is our core build platform we implement clean, valid markup this way. It keeps structured data separate and maintainable. Because Squarespace supports code injection, JSON-LD can be added reliably without disrupting the design.
How do you add schema markup on WordPress?
On WordPress, you can add schema using a dedicated plugin, an SEO plugin that includes schema, or by inserting JSON-LD manually into templates or the header. Plugins make it accessible. Because WordPress is flexible, you have several routes, though it is important to avoid duplicate or conflicting markup from multiple plugins.
How do you add schema markup on Shopify?
On Shopify, schema often comes partly from the theme, and can be extended by editing theme code or using apps, particularly for product structured data. Themes provide a starting point. Because Shopify themes vary, checking what schema already exists and avoiding duplication matters when adding more.
How do you keep schema valid after adding it?
You keep schema valid by testing it after adding or changing it, avoiding duplicate markup, keeping it accurate to the page, and re-checking when the site changes. Validation catches problems early. Because errors can stop rich results appearing, regular testing is the reliable way to keep structured data working, though rich results are never guaranteed.