Pinlist / Guides
How to Add Schema Markup in Squarespace
Make the block below, then paste it into the page's Header Code Injection (Page Settings, then Advanced), or into a Code block on the page. Publish and test it.
Example details are filled in. Replace them with yours; the code updates as you type.
More details (optional)
Copy the cells, header row included, and paste here. Columns: name, street, city, state, zip, phone, url, hours. Tabs or commas both work.
Paste it into the page's <head>, then check it in Google's Rich Results Test.
If code injection is not on your plan
Code injection is not included in every Squarespace plan. Without it, add a Code block to the page and paste the block there; Google reads JSON-LD in the page body as well as the head. Set the Code block to HTML.
Squarespace may write some markup of its own. Run the page through the Rich Results Test first to see what is already there, so the two do not disagree.
Add the block in Squarespace
- Copy the blockFill in your details here and click Copy code.
- Open the page's code injectionIn Pages, open the page's settings, choose Advanced, and paste into Page Header Code Injection. For a one-location site, the site-wide Code Injection header works too.
- Save and testSave, then check the live page in Google's Rich Results Test.
Questions
Does a Code block show the code to visitors?
No. A script block of type application/ld+json is read by search engines and not displayed.
Can I add it to every page at once?
The site-wide header adds it to every page, which suits a one-location business. Several locations each need their own page's injection.
Do I keep the script tags?
Yes. Paste the block exactly as copied, script tags included.