How to Add LocalBusiness Schema (JSON-LD) to a Small Business Website
If you build sites for local businesses, structured data is one of the cheapest SEO wins available. LocalBusiness schema tells search engines your client's name, address, phone, hours and service area in a machine-readab
If you build sites for local businesses, structured data is one of the cheapest SEO wins available. LocalBusiness schema tells search engines your client's name, address, phone, hours and service area in a machine-readable way, which supports Maps visibility and rich results.
The minimal JSON-LD block
Add this inside the <head> (or anywhere in the body) of the homepage and contact page:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "ProfessionalService",
"name": "Your Business Name",
"url": "https://example.com/",
"telephone": "+91-00000-00000",
"address": {
"@type": "PostalAddress",
"streetAddress": "Street address",
"addressLocality": "Ludhiana",
"addressRegion": "Punjab",
"addressCountry": "IN"
},
"openingHours": "Mo-Sa 10:00-19:00",
"areaServed": "Ludhiana"
}
</script>
Tips that matter in practice
-
Pick the most specific type.
ProfessionalService,Dentist,Storeetc. are better than plainLocalBusiness. - Match visible content. The name, address and phone must match what is on the page and on the Google Business Profile, otherwise Google ignores it.
-
Add
sameAs. Link the business's social profiles so search engines connect the entity. - Validate. Run the page through Google's Rich Results Test and the Schema Markup Validator after deploying.
- WordPress? Plugins like Rank Math or Yoast can output this for you; just fill in the local SEO settings.
Why it is worth 10 minutes
For local service sites, schema alone will not rank a page, but combined with a complete Google Business Profile, consistent citations and good service pages it removes ambiguity for search engines and AI answer engines.
I covered the wider local SEO process for small businesses in Ludhiana here: SEO services in Ludhiana. More guides on srishtigupta.com.
Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.