// How-to

How to Add Local Business Details to Your Website

By Ryan Lenk • October 26, 2026

Local business details are a short block of code that tells Google your business name, address, phone number and hours in a form software can read. You write the block once, paste it into your site, and test it with Google's free Rich Results Test. You need your exact details, a login to the site and, on Squarespace, a plan that includes code injection.

Checked on October 25, 2026.

What does this block do?

Google's guide to local business structured data says that when people search for a business on Search or Maps, the results "may display a prominent Google knowledge panel with details about a business that matched the query." The block is one way your website can give Google those details.

Structured data is the name for code like this. It uses a shared vocabulary from schema.org, so a machine can tell a phone number from a street address. Google writes its examples in a format called JSON-LD, and I use the same format below.

Before you start

Write down four things before you touch the site, exactly as customers see them:

  • The business name.
  • The street address, town, state and ZIP code.
  • The main phone number, with the country code and area code. Google asks for both.
  • The opening hours for each day.

Keep the name, address and phone identical on the website, the Google Business Profile and every directory. Matching details everywhere is module 1 of the method I used on Krafty Bandit, my family's shop.

Step 1: Check whether you already have the block

Some builders write it for you. Wix says that when you add a business name and location, it "automatically creates Local Business markup for your homepage." Squarespace says it generates Local business structured data on its own, and that you can't edit or remove it.

So I always test first. Open Google's Rich Results Test, paste in your homepage address and run it. If you see "Local businesses" with a valid item, the block is already there. Click the row and check each detail against your note. If the item shows errors or the wrong details, fix them where the block comes from: your builder's business settings, your SEO app or the code you pasted. Then run the test again. If the test finds no local business item, go to step 2.

Google Rich Results Test results for kraftybandit.com: crawled successfully on Oct 25, 2026, 2 valid items detected, with Local businesses 1 valid item and Organization 1 valid item

Step 2: Write the block

Copy this into a plain text editor and swap each value you see for your own. Keep every quote mark, comma and bracket where it is.

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "LocalBusiness",
  "name": "Your Business Name",
  "url": "https://www.yourdomain.com/",
  "telephone": "+1-412-555-0100",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "123 Main Street",
    "addressLocality": "Your Town",
    "addressRegion": "PA",
    "postalCode": "15000",
    "addressCountry": "US"
  },
  "openingHoursSpecification": [
    {
      "@type": "OpeningHoursSpecification",
      "dayOfWeek": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"],
      "opens": "09:00",
      "closes": "17:00"
    }
  ]
}
</script>

Google lists two required fields, name and address. Telephone, url and opening hours are on its recommended list. The rules I check every time:

  • For "@type", Google asks for the most specific type that fits, like Restaurant, DaySpa or HealthClub. LocalBusiness is the general one when nothing closer fits.
  • Google says the url has to be a working link.
  • Hours use a 24-hour clock, so 5 PM is "17:00". Add one set of hours for each group of days with the same times.
  • I leave star ratings out. Google recommends review fields only for sites that collect reviews of other businesses.

I also put the same details on the page, in the footer or the contact section. Wix's help page says that if information in your markup doesn't appear on the page, it might not show as a rich result. Google's own guide adds a harder limit: if a site breaks its structured data guidelines, Google "may issue a manual action against it."

Step 3: Paste it into your site

Shopify. Shopify recommends you duplicate your theme first, so you have a backup. Go to Online Store, click the three-dot button, and choose Edit code. Open layout/theme.liquid, paste the block on the line above </head>, and click Save. Shopify warns that code edits can be removed when a theme update isn't compatible with them, so I run the test again after every update.

Wix. In the editor, click Pages & Menu, then the More Actions icon next to your homepage, then SEO basics. Open the Advanced SEO tab, click Structured Data Markup, then +Add New Markup. Name it, paste the block and click Apply. Wix only takes JSON-LD, each markup has to stay under 7,000 characters, and you get up to five per page.

Squarespace. Code injection comes with the Core, Plus and Advanced plans and some legacy plans. If step 1 found nothing, hover over the homepage in the Pages panel, click its settings icon, then Advanced. Paste the block into Page Header Code Injection and save.

WordPress and other builders. Google's guide says that on a content management system, "it may be easier to use a plugin that's integrated into your CMS." I check the SEO plugin's business settings before I paste anything by hand, so the homepage doesn't end up with two blocks.

Step 4: Check that it worked

Run the Rich Results Test again. You want "Local businesses" with "1 valid item detected." Click the row and you can see exactly which fields Google read, just as in the screenshot below.

Rich Results Test detail for the Krafty Bandit item: type Store, name Krafty Bandit, the url, the telephone number +1-717-744-2042 and the other fields Google read

If you use Google Search Console, inspect the homepage with the URL Inspection tool and ask Google to recrawl it. Google says it may take several days after you publish a page for Google to find and crawl it.

What this does not do

A valid result tells you the page is eligible. Google's guide says it "does not guarantee that features that consume structured data will show up in search results."

The block also lives only on your website. Your Google Business Profile and your Bing Places listing are separate, each with its own settings. Microsoft's AI Performance announcement says local businesses can register with Bing Places for Business to help keep their address, hours and contact details current and eligible for AI answers. My Google Business Profile checklist covers the profile side.

What it looks like on a real shop

On October 25, 2026, I ran the Rich Results Test on the Krafty Bandit homepage. It found 1 valid Local businesses item and 1 valid Organization item. The local item is a Store block with the shop's name, street address, phone number with the country code, opening hours and map coordinates.

Questions people ask

Do I still need this if I have a Google Business Profile?

I set up both. Your profile is a listing that Google hosts for you. The block sits on your own site, and Google's guide says it lets you tell Google about your hours, your departments and more.

Does the block go on every page or only the homepage?

Google says you can add it to any page, though it "may make more sense to put it on a page that contains information about your business." The Shopify steps above put it in the theme file every page shares. The Wix and Squarespace steps put it on the homepage only.

What if I have more than one location?

Google says to define each location as its own LocalBusiness, and its url field is "the fully-qualified URL of the specific business location." So each location gets its own block, with its own address, phone and hours.

Next step

Run the free AI Readiness Scanner: paste in your robots.txt and your homepage source, get a scored report on whether ChatGPT, Perplexity, and Google AI can actually read your business. About two minutes, no signup, and nothing you paste ever leaves your browser.

Run the free scan →

Rather hand it off? I do this work by the hour.

Structured Data, $75 an hour ▸Local SEO, $75 an hour ▸
Ryan Lenk
Written by Ryan Lenk

I run the SEO and AI visibility for my family's Shopify shop and publish the receipts, good and bad. Every number on this site comes from a named tool export, and corrections get published rather than edited away.

About me • Run the free AI Readiness Scanner • Work with me

← All how-to guides Subscribe on YouTube ▸