How to add LocalBusiness schema to your website
5 min read · Updated 13 November 2026
Schema markup is a small block of code, invisible to visitors, that spells out your business details for search engines and AI assistants: your name, address, phone number, hours and what kind of business you are. Without it they have to guess from the page.
The easy way: let your builder do it
- Wix and Squarespace: fill in your business info in the site settings, and the markup is added for you.
- WordPress: Yoast (with its Local SEO add-on) and Rank Math both have a section for your business details.
- Shopify: many themes add basic markup; a schema app can fill in the rest.
The hands-on way: paste it in
Copy this, change the details to yours, and paste it into the head of your home page (or ask your web person to). Use the most specific type that fits: “Plumber”, “Electrician”, “HairSalon”, “Dentist” and “AutoRepair” all exist, with “LocalBusiness” as the fallback.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Plumber",
"name": "Murphy Plumbing",
"url": "https://murphyplumbing.ie",
"telephone": "+353 87 123 4567",
"image": "https://murphyplumbing.ie/van.jpg",
"address": {
"@type": "PostalAddress",
"streetAddress": "1 Main Street",
"addressLocality": "Ennis",
"addressRegion": "Co. Clare",
"postalCode": "V95 XXXX",
"addressCountry": "IE"
},
"openingHoursSpecification": [{
"@type": "OpeningHoursSpecification",
"dayOfWeek": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"],
"opens": "08:00",
"closes": "18:00"
}],
"sameAs": ["https://www.facebook.com/murphyplumbing"]
}
</script>Tip: Use exactly the same name, address and phone number as on your Google Business Profile. Small differences make Google less sure it’s the same business.
Check it worked
Paste your page’s address into Google’s Rich Results Test or the Schema Markup Validator (validator.schema.org). Both show what they found and flag mistakes. Then run our free website check, which looks for it too.