How to add local business schema markup
Local business schema is a block of JSON-LD code in your page that states your business name, address, phone number and hours in a form search engines can read. You add it with an SEO plugin, your site builder's settings, or by pasting the code into your home page or contact page, then check it with a free validator.
If your site has no LocalBusiness schema, nothing looks wrong to visitors. But search engines and AI tools have to work out your name, address, phone number and opening hours from ordinary page text, and they can get it wrong. This page explains what the markup is, how to check for it, how to add it, and how to keep it correct.
What the problem is
LocalBusiness is a type defined at schema.org. It is usually added as JSON-LD: a block of data inside a <script type="application/ld+json"> tag in your page's HTML. Visitors never see it.
"Missing" means one of two things. Either your site has no structured data at all, or it has schema for other things (a website, an organization, a blog post) but nothing that describes a business with a physical location or service area.
The symptoms are indirect. You will not see an error on the page. You may notice that a validator reports no LocalBusiness item, that search results show wrong or outdated details for you, or that AI assistants describe your business vaguely.
Why it matters
Structured data does not guarantee higher rankings or special results, and it is worth being honest about that. What it does is remove guesswork. Google's documentation lists LocalBusiness markup as a way to help it understand details such as your address and opening hours, which can be used in features like knowledge panels.
The practical benefits are:
- Search engines get your name, address, phone and hours in one clear, machine readable place.
- AI search tools and assistants that read your pages have a reliable source to quote.
- Customers are less likely to see a wrong phone number or old opening hours.
Schema supports your Google Business Profile, it does not replace it. Keep both.
How to check if your site has it
These checks are free and take a few minutes:
- Open your home page or contact page, right click and choose View Page Source. Search (Ctrl+F or Cmd+F) for
ld+json. If you find nothing, there is no JSON-LD on that page. - If you find blocks, look for
"@type"lines. You want to seeLocalBusinessor a more specific type such asDentist,Plumber,RestaurantorHairSalon. - Paste your page address into Google's Rich Results Test, or into the Schema Markup Validator at validator.schema.org. Both list the structured data they detect.
Check the page where your business details live. Many sites only need the markup on the home page or contact page, not on every page.
How to add it in general
First, gather your details exactly as they appear on your site and Google Business Profile: business name, full street address, phone number, website address, opening hours, and a logo or photo address. Google lists name and address as the required properties, and recommends adding more, such as telephone, url, openingHoursSpecification, geo and image.
Then choose the most specific type that fits. LocalBusiness is the general type, but subtypes are better when one exists.
A basic example looks like this. Replace every value with your own:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "LocalBusiness",
"name": "Example Bakery",
"url": "https://www.example.com/",
"telephone": "+1-555-010-0123",
"image": "https://www.example.com/images/shopfront.jpg",
"address": {
"@type": "PostalAddress",
"streetAddress": "12 Main Street",
"addressLocality": "Springfield",
"addressRegion": "IL",
"postalCode": "62701",
"addressCountry": "US"
},
"openingHoursSpecification": [
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"],
"opens": "08:00",
"closes": "17:00"
}
]
}
</script>
Paste this into the HTML of your home page or contact page, usually inside the <head> section or just before the closing </body> tag. If you do not have access to the HTML, use one of the methods below.
Common platforms
Menu names change between versions and themes, so look for the idea rather than the exact label.
- WordPress: Well known SEO plugins such as Yoast SEO, Rank Math and All in One SEO have local business or organization settings, sometimes in a paid tier. Look under the plugin's settings for "Local SEO", "Schema" or "Site representation". See the WordPress guide for details.
- Shopify: Themes often include only product schema. You usually add LocalBusiness code to the theme's
theme.liquidfile or to a page template (duplicate your theme as a backup first, because a code mistake can break the whole store), or use a schema app. A developer can help if you are unsure. - Wix: Look for the SEO settings of a page, where there is usually an option to add custom structured data markup.
- Squarespace: Use Code Injection (site wide or per page) to paste the JSON-LD block. Code injection is not available on every plan.
- Webflow: Add the script in the page settings under custom code, in the head section.
- GoDaddy website builder: Options are more limited, so check whether your plan allows custom code or header scripts.
- Google Tag Manager: You can publish JSON-LD through a Custom HTML tag. It works, but search engines may read it less reliably than markup in the page itself, so use it only if you cannot edit the site.
How to confirm the fix worked
- Clear any site cache, or wait a few minutes, so the live page serves the new code.
- Run the page through the Rich Results Test and the Schema Markup Validator again. You should see a LocalBusiness item (or your chosen subtype) with no errors.
- Read the detected values against your real details. Check the phone number, address and hours character by character.
- View the page source once more to be sure the block appears only once.
Warnings about optional fields are normal and not a failure. Errors about required fields should be fixed.
If you add the markup and later see problems, two related guides may help: schema plugin duplicate markup covers the common case where a plugin and a hand pasted block both output schema.
How to stop it coming back
Markup disappears when a theme is changed, a plugin is removed, or a page is rebuilt. It also goes stale when your business changes.
- Keep one source of truth. Use either a plugin or hand written code, not both.
- Update the markup whenever your address, phone number or hours change, at the same time as your Google Business Profile. Mismatched details are a separate problem, covered in local schema NAP mismatch.
- Re-run the validator after theme updates, redesigns or plugin changes.
- Write down where the markup lives (plugin setting, theme file or tag manager) so the next person knows.
SiteMonday checks structured data in week 16 of its yearly schedule, with a written report and a ranked fix list. It finds and explains the problem. Adding the code is up to you or your developer.
Step by step for your platform
- Missing LocalBusiness schema on WordPress
- Missing LocalBusiness schema on Shopify
- Missing LocalBusiness schema on Wix
- Missing LocalBusiness schema on Squarespace
- Missing LocalBusiness schema on Webflow
- Missing LocalBusiness schema on Google Tag Manager
- Missing LocalBusiness schema on GoDaddy
Questions
Do I need LocalBusiness schema if I have a Google Business Profile?
It is not required, but it is a good complement. Your profile feeds Google's local listings, while schema on your own site confirms the same details from a source you control.
Which pages should have LocalBusiness schema?
Usually the home page and the contact page are enough for a single location. If you have several locations, give each its own page with its own markup.
Should I use LocalBusiness or a more specific type?
Use the most specific type that truthfully fits, such as Dentist, Restaurant or Plumber. If none fits, LocalBusiness is correct.
Will adding schema improve my rankings?
Not directly or guaranteed. It helps search engines and AI tools understand your business correctly, which supports local visibility but does not replace good content and a complete Google Business Profile.
Can I add schema if my business has no shop and works at customers' homes?
Yes. You can still use LocalBusiness or a subtype, and add `areaServed` to describe where you work. If you hide your street address publicly, check Google's current guidance before leaving it out.
Is JSON-LD better than other schema formats?
Google recommends JSON-LD, and it is the easiest to add and maintain because it sits in a separate block and does not mix with your page design.