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 built | Where the setting lives, October 2026 |
|---|---|
| WordPress | Yoast 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. |
| Wix | SEO, 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. |
| Squarespace | Settings, Developer tools, Code injection, Header. Squarespace adds a basic block of its own, and yours can sit next to it. |
| Shopify | Online Store, Themes, Edit code, theme.liquid, before the closing head tag. |
| Webflow | Site settings, Custom code, Head code. Or put it in the homepage's page settings. |
| GoDaddy, Jimdo, Duda, Weebly | Look 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
- ChatGPT doesn't show my restaurant. Why, and what to do
- Am I blocking ChatGPT, Claude and Perplexity without knowing?
- robots.txt for AI agents: who to allow, and how
- My menu is a PDF. Can AI assistants read it?
- All guides
Updated 2026-10-14. Dashboard names are as of that date.