How to Add Local Business Schema to WordPress (Without Heavy Plugins)
If you want your local business to dominate Google's Local Pack, you need JSON-LD schema markup. Here is the absolute easiest way to add it to your WordPress site in under 5 minutes.
Why WordPress Sites Need Custom Schema
Many WordPress SEO plugins (like Yoast or RankMath) offer basic schema markup. However, they often wrap your entire site in generic "Organization" schema. If you are a plumber, a dentist, or a roofer, Google needs to know your specific local business category to rank you in the Google Maps Local Pack.
The best way to guarantee Google reads your NAP (Name, Address, Phone) data perfectly is to hardcode custom JSON-LD directly into your site's header.
Step 1: Generate Your Custom JSON-LD Code
You do not need to know how to code to do this. Search engines prefer a format called JSON-LD.
- Go to the LocalSchema Generator.
- Select your specific business niche (e.g., Plumber, Electrician, HVAC).
- Fill out your business details exactly as they appear on your Google Business Profile.
- Click Copy Code.
Step 2: Add the Code to WordPress
The safest and easiest way to add custom code to WordPress without breaking your theme is by using a free "Headers and Footers" plugin.
- Log in to your WordPress Dashboard.
- Go to Plugins > Add New.
- Search for WPCode (formerly Insert Headers and Footers) and click Install & Activate.
- In your left sidebar, click on Code Snippets > Header & Footer.
- Paste the code you copied from LocalSchema into the Header box.
- Click Save Changes.
Pro Tip: Only put your Local Business schema on your Homepage or your specific "Contact" / "Location" pages. Do not inject it into every single blog post on your site.
Step 3: Test Your Markup
Once you save your WordPress settings, you need to verify that Google can read the code. Go to the official Google Rich Results Test, paste your WordPress website URL, and hit test. You should see a green checkmark indicating your Local Business is valid!