# LocalBusiness schema without a plugin

URL: https://ekom.blog/localbusiness-schema-without-a-plugin/
Published: 2024-06-20 · Updated: 2026-11-07
Author: Ekom
Topics: Technical SEO

> How to add and validate LocalBusiness structured data carefully without a plugin, after checking existing markup.

Your local business site has no schema plugin, and someone tells you to just paste in a snippet. Easy, right? Sort of. You don't need a plugin, but hand-written JSON-LD makes you responsible for accuracy, escaping and upkeep. And if the site already outputs LocalBusiness markup, a second block creates duplicates or conflicting details.

So check first what the site outputs now. If you do add JSON-LD yourself, use only verified details, pick the most specific type that fits, test it and keep it matching the visible page. Schema won't guarantee a rich result or better rankings.

## Confirm that the business qualifies

Structured data should describe a real business and match information visitors can find on the site. Confirm the official name, address or service area, phone number, URL and hours with the business owner. Avoid adding marketing claims or attributes that cannot be verified.

Use an appropriate LocalBusiness subtype where one exists and fits. Do not choose a type simply because it sounds closer to a keyword. If the organisation serves customers only online or has no eligible physical location, review Google's current guidance before adding local business properties. A schema block does not create a legitimate business location.

For a business with several branches, each location may need its own accurate page and entity information. Do not copy one address across multiple fictional locations. Keep profile and website details consistent, and update them when the business moves or hours change.

## Check what is already on the page

Inspect the rendered HTML with a structured data testing tool or browser. Themes, SEO plugins, local SEO plugins and other integrations may already output LocalBusiness or Organization schema. Search for application/ld+json and review every relevant block.

If there is existing markup, decide which system owns it. Multiple JSON-LD blocks are not always wrong, but duplicate or conflicting business details can create confusion. I wouldn't add a hand-coded block until I know how the current plugin or theme behaves.

Check the visible page content too. Structured data should not state a phone number, address or opening hours that users cannot see or that contradict another page. Search engines can ignore markup that is inaccurate or misleading.

## Write valid JSON-LD

JSON-LD is a structured format placed in a script element with type="application/ld+json". It uses JSON syntax, so property names and string values need double quotation marks, commas must be placed correctly, and special characters must be escaped. One trailing comma can invalidate the whole block.

A basic example might look like this, with placeholder values replaced only by confirmed business details:

{
"@context": "https://schema.org",
"@type": "LocalBusiness",
"name": "Example Business",
"url": "https://www.example.com/",
"telephone": "+1-555-0100",
"address": {
"@type": "PostalAddress",
"streetAddress": "10 Example Road",
"addressLocality": "Example City",
"addressCountry": "XX"
}
}

This is illustrative placeholder data, not a recommended real business record. Use the correct address format and country code for the organisation. Do not include properties simply because they appear in an example; only add values that are accurate and useful.

## Add the markup carefully

If adding a script to a WordPress theme, use a child theme or another maintainable method. Edit the parent theme directly and the next update may wipe your code. I'd go for a child theme every time. A site-specific plugin can also hold custom markup, but ensure no SEO plugin is already adding the same entity.

If the schema is rendered through a template, populate it from the business's verified fields rather than hard-coding the details on several pages. That reduces mismatch when hours or phone numbers change. Keep access limited to people who understand the source fields.

For multiple locations, consider whether each branch page should describe its own entity and how the main organisation relates to it. Do not mark every page as the same individual local business if that misrepresents the organisation structure.

## Test and maintain it

Validate the JSON syntax and use Google's Rich Results Test to see which eligible search features it recognises. Use Schema.org's validator to inspect vocabulary and structure. Passing a validator does not guarantee a rich result; Google decides whether and how to display enhancements.

After publishing, inspect the page source and confirm that the expected block appears once and contains the right values. Test after theme or plugin updates, because another system may begin outputting similar markup. Keep a note of where the code lives and who owns updates.

Review markup when the business changes its name, address, phone number or hours. If the visible page changes, update the structured data too. Remove outdated properties rather than leaving stale information in code.

## When to use a plugin instead

A plugin can reduce coding work and make business information easier to update. It can also add more markup than you need or overlap with the theme. Choose based on maintainability, not the idea that manual schema is inherently better.

If the site has several locations, complex entity relationships or a developer-maintained theme, have the implementation reviewed. A small syntax error or conflicting output can make the markup unusable.

## Add JSON-LD carefully

If you add a block manually, keep it small and generate it from details the business has approved. JSON-LD is usually easier to maintain than inserting attributes throughout the HTML, but it still needs valid syntax. Quotes inside a business name or address must be escaped correctly. Use the appropriate Schema.org type for the actual organisation; a local shop, a professional practice and a branch of a larger organisation do not necessarily describe themselves in the same way.

Never copy example values into production. Placeholder phone numbers, invented opening hours or an address that differs from the contact page can create a mismatch. Add the code to the relevant page, test the live URL with Google's Rich Results Test for supported enhancements, and use Schema.org's validator when you want to check broader structured data. A valid result means the markup can be parsed; it does not promise that Google will display a rich result. Keep the visible page and the structured data in sync whenever the business changes its details.

## Related reading

- The HTTP status codes every site owner should recognise

- Accessibility and SEO: where they overlap

- Domain names and SEO: does the name still matter?

Inspect the page source before adding any code. What business details are already there, and who will keep them accurate?

---

From Ekom (https://ekom.blog/). More: https://ekom.blog/llms.txt
