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.

Opening hours
Mon to Fri
Saturday
Sunday
More details (optional)
Your JSON-LD

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

  1. Copy the blockFill in your details here and click Copy code.
  2. 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.
  3. Update and testClick Update, open the live page in Google's Rich Results Test, and check that one LocalBusiness item is found.
Structured data helps search engines read your business details. It does not promise a ranking or a rich result; Google decides what it shows.

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.

See the code