How to Add LocalBusiness Schema in WordPress Without Breaking Your Site (2026)

By the Amica Solutions Team · Published 19 November 2026 · Google facts checked 19 November 2026 against Google’s own Help pages. Amica Solutions builds Amica Directory and these free tools, so the screenshots are from our own tools and our own listing.

To add LocalBusiness schema in WordPress, generate the JSON-LD code, then paste it into a header-code box, a Custom HTML block on your contact page, or fill your SEO plugin’s local business fields, but only one of these. Keep the details identical to your Google Business Profile and test with the Rich Results Test.

Schema generator output next to a profile checklist

Generate the code (left); keep it matching your profile (right). Screenshots: Amica Directory, 19 Nov 2026.

WordPress makes adding schema easy, and also makes it easy to end up with two conflicting blocks: one from a plugin and one pasted by hand. Five minutes of care avoids that.

Key takeaways

  • Generate the code with your exact profile details.
  • Add it one way only.
  • One block per location page.
  • Watch for plugin duplicates.
  • Test, then allow several days.

What do you need before adding schema?

First, generate the code. Use the free LocalBusiness Schema Generator with the same name, address, phone and hours as your Google Business Profile. Google’s documentation shows the markup inside a <script type=”application/ld+json”> block and notes you can also use a CMS plugin (Google Search Central).

Localbusiness schema generator filled in for amica solutions with the json-ld code output

The schema generator filled in for our business, with the code on the right. Screenshot: Amica Directory, 19 Nov 2026.

Three ways to add schema in WordPress

Then add it in one of three ways.

MethodHowBest when
Header code boxPaste the code into a header-scripts plugin or your theme’s custom code box, limited to the home or contact pageYou want it site-wide or on one key page
HTML block on the pageIn the block editor or Elementor, add a Custom HTML block on the contact page and paste the codeOne location, one contact page
SEO plugin’s local settingsFill the plugin’s local business fields instead of pasting codeYour SEO plugin already outputs Organization schema

For several branches, Google says to define each location as its own LocalBusiness; put each block on that branch’s own page.

How do you avoid duplicate or wrong schema?

Avoid duplicates and mismatches. Many SEO plugins already output Organization or LocalBusiness data. Two blocks with different phone numbers or addresses confuse search engines.

ProblemFix
Plugin and pasted code both output LocalBusinessKeep one; fill the plugin fields or disable its local schema
Address differs from Business ProfileCopy the exact address from your profile
Phone without country codeUse +91 and the full number, as Google recommends
Schema on a noindex pagePut it on an indexable page; check with URL Inspection
Hours not updated after a changeUpdate the schema when you change profile hours

How do you test it?

Test. Run the page through Google’s Rich Results Test, fix critical errors, and check the live page with URL Inspection in Search Console. Google says to allow several days for crawling and indexing.

Generate your code

Free tool: LocalBusiness Schema Generator

Make the code first: a short form, 32 business types, grouped hours and a copy button.

Generate my schema codeAsk us on WhatsApp

Frequently asked questions

How do I add schema to WordPress without a plugin?

Paste the JSON-LD code into a Custom HTML block on your contact page, or into your theme’s header code box for that page.

No. A pasted JSON-LD block works. If your SEO plugin has local business fields, you can use those instead, but not both.

Your home or contact page for one location; each branch’s own page for multiple locations.

Run the page through the Rich Results Test and look for more than one LocalBusiness or Organization item with different details.

Yes. Add an HTML widget on the page and paste the JSON-LD block.

Chat With Us on WhatsApp

Send us your question and we reply on WhatsApp.

Opens WhatsApp with your message to +91 94113 39575.

Recent Posts

Scroll to Top