Pinlist / Guides
How to Add Local Business Schema in WordPress
Make the block below, then paste it into a Custom HTML block on the page it describes, or into the head through a plugin that adds header code. No schema plugin is needed.
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.
Check for a second block first
SEO plugins often write their own Organization or LocalBusiness markup. Before adding yours, run the page through the Rich Results Test. If it already shows a LocalBusiness item, fill in that plugin's local settings or turn its markup off, so the page does not describe the business twice with different details.
A Custom HTML block puts the code in the page body. Google reads JSON-LD there as well as in the head.
Add the block in WordPress
- Copy the blockFill in your details here and click Copy code.
- Paste it into the pageIn the block editor, open the page, add a Custom HTML block anywhere, and paste. Or, with a plugin that adds code to the site's header, paste it there for a site with one location.
- Update and testClick Update, open the live page in Google's Rich Results Test, and check that one LocalBusiness item is found.
Questions
Will the block editor change my code?
The Custom HTML block keeps it as pasted. The Paragraph block does not; use Custom HTML.
Does a page builder theme change the steps?
Most page builders have an HTML or code element; paste the block into it the same way.
Where do I add it for several locations?
On each location's page. The multiple locations guide shows how to make every block at once.