The Direct Index
Guide

Structured data for a restaurant website, copy and paste

Structured data is a short block of JSON in the page with the facts an assistant needs: who you are, where you are, when you're open, what you serve, where the menu is and whether you take bookings. It's the cheapest fix on this site, and every assistant reads it first.

The block

Change the values and keep the keys. One block on the homepage is enough.

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Restaurant",
  "name": "Your Business",
  "url": "https://yourbusiness.com/",
  "telephone": "+351 21 000 0000",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "Rua Exemplo 1",
    "addressLocality": "Lisbon",
    "postalCode": "1100-000",
    "addressCountry": "PT"
  },
  "openingHoursSpecification": [
    { "@type": "OpeningHoursSpecification", "dayOfWeek": ["Tuesday","Wednesday","Thursday","Friday","Saturday"], "opens": "12:00", "closes": "23:00" },
    { "@type": "OpeningHoursSpecification", "dayOfWeek": "Sunday", "opens": "12:00", "closes": "16:00" }
  ],
  "servesCuisine": "Portuguese",
  "priceRange": "€€",
  "hasMenu": "https://yourbusiness.com/menu",
  "acceptsReservations": "https://yourbusiness.com/book"
}
</script>

If you're not a restaurant, change the type to HairSalon, Dentist, Store, TouristAttraction, or LocalBusiness when nothing fits, and drop servesCuisine and hasMenu.

Where to paste it

Where your site is builtWhere the setting lives, October 2026
WordPressYoast and Rank Math make a LocalBusiness block from their Local SEO settings. Or paste the block into the header with a code snippets plugin, or into the theme's header scripts field.
WixSEO, then Structured data markup in the homepage settings, and add a custom markup. Or use Wix's own Restaurant preset and add the missing fields.
SquarespaceSettings, Developer tools, Code injection, Header. Squarespace adds a basic block of its own, and yours can sit next to it.
ShopifyOnline Store, Themes, Edit code, theme.liquid, before the closing head tag.
WebflowSite settings, Custom code, Head code. Or put it in the homepage's page settings.
GoDaddy, Jimdo, Duda, WeeblyLook for header code or custom code in the site settings. If there's no such field, the host's support can add the block.

Dashboards move things around. If a name here doesn't match, search the dashboard for the word in bold.

Check what you wrote

Paste your page address into Google's Rich Results Test or the schema.org validator, then rescan here. The report shows whether it found your address, phone and hours.

Check it

If you already have a block and aren't sure it's complete, run the free scanner on your address. The report names each crawler that was refused and what it found for the menu, the structured data and the booking path, then says what to fix first. Rescans are free.

More guides

Updated 2026-10-14. Dashboard names are as of that date.