How to add schema (structured data) to a Webflow site

How to add schema (structured data) to a Webflow site

Schema (structured data) is a small piece of code that tells Google and AI tools exactly what your page is, who wrote it and when. In this article we explain what it does, which types most business websites need, and how to add it to Webflow, either by hand or automatically from your CMS fields. We also show how to test it and which mistakes to avoid.

Diem Ngo
Founder of Ngo Studio
Last updated:
November 5, 2026
Blog article main image at the top of the page.

Schema is a hidden label that tells Google and AI tools what your page is. Learn what it does, which types you need, and how to add it to Webflow.

When you read a web page, you can tell at a glance what is a title, who wrote it and when. A search engine cannot see the page the way you do. It reads the code and has to guess. Schema, also called structured data, removes the guessing by labelling the facts in a format machines understand.

This article starts with the basics, and later sections go deeper for readers who want to build it themselves. We use everything described here on our own Webflow site.

What schema is

Think of a library. A book on the shelf has a cover, but the library also keeps a card for it: the title, the author, the year and the subject. You can find the book faster because of the card.

Schema is that card for a web page. It sits in the page's code, so visitors never see it, but search engines read it. On a blog article it can say: this is an article, here is its title, here is who wrote it, here is when it was published, and here is where it sits on the site.

Schema uses a shared vocabulary from schema.org, which Google, Bing and other companies agree on. That shared language is why a label written once can be understood by many different tools.

Why it matters

Schema helps in three ways, and it is worth being honest about each.

  • It removes guesswork. Google can read your title, author and dates directly instead of working them out from the page.
  • It can unlock extra features in search results. Some types, such as breadcrumbs, can change how a result looks. Google decides whether to show them, so there is no guarantee.
  • It helps machines understand who you are. Describing your business and website clearly is useful for search engines and for AI tools that read the web. No company has promised that AI tools rely on it, so treat it as good groundwork, not a trick.

Schema is not a shortcut to the top of the results. Google has said that structured data does not directly raise rankings on its own. It also has to match what visitors can see on the page. Schema that describes content that is not there can be ignored, or lead to a penalty.

Which schema types a small business needs

The schema.org vocabulary has hundreds of types, but most business websites need only a handful.

Schema types a small business website usually needs, where each one goes and what it tells Google
Type Where it goes What it tells Google
Organization Homepage, or every page Your business name, website, logo and social profiles
WebSite Homepage The name and address of the whole site
WebPage Any page, such as policy pages That the page exists and which site it belongs to
BlogPosting Each blog article Title, summary, image, author and dates
BreadcrumbList Inner pages and articles The trail, such as Home > Blog > Article
LocalBusiness Homepage or contact page Address, opening hours and phone, if you serve a local area

You might also see FAQPage in guides. It is valid, but Google now shows FAQ rich results only for a small group of well-known sites, so do not add it in the hope of a bigger search result.

Where schema goes in Webflow

Google supports several formats, and recommends one called JSON-LD. It is a block of text wrapped in a <script type="application/ld+json"> tag. It lives separately from your page design, so you can add or change it without touching how the page looks.

In Webflow there are three places to put it:

  1. Site settings, then Custom code, in the head. It appears on every page. Good for the Organization and WebSite types.
  2. A single page's Page settings, then Custom code, inside the head tag. Good for one-off pages such as the homepage, a contact page or a policy page.
  3. A CMS template page's Page settings. The same block is used for every item in the collection, and CMS fields fill in the details. Good for blog articles, portfolio items and services.

The head is the invisible top part of the page, so visitors never see the code.

The schema block on our blog template page in Webflow, under Page settings, then Custom code, inside the head tag. The purple labels, such as Slug, Header, Post Summary, Main Image, Published and Last updated, are CMS fields inserted with Add Field, so every article gets its own values.

Step by step: add schema to one page

We will add a simple Organization and WebSite block to a homepage.

  1. In the Webflow Designer, open the Pages panel, hover over your homepage and click the gear icon to open its page settings.
  2. Scroll to Custom code and find the box called Inside <head> tag.
  3. Paste the block below.
  4. Replace every value in capitals with your own details. Use the same domain version everywhere, for example www.
  5. Click Save, then publish the site.
  6. Test the page, as described later in this article.

<script type="application/ld+json">
{
 "@context": "https://schema.org",
 "@graph": [
   {
     "@type": "Organization",
     "@id": "https://www.YOURDOMAIN.com/#organization",
     "name": "YOUR BUSINESS NAME",
     "url": "https://www.YOURDOMAIN.com/",
     "logo": "https://www.YOURDOMAIN.com/LOGO-FILE.png"
   },
   {
     "@type": "WebSite",
     "@id": "https://www.YOURDOMAIN.com/#website",
     "name": "YOUR BUSINESS NAME",
     "url": "https://www.YOURDOMAIN.com/",
     "publisher": { "@id": "https://www.YOURDOMAIN.com/#organization" }
   }
 ]
}
</script>

The @graph part lets one block describe several things at once, and the @id values let them point at each other. The publisher line, for example, says that the website is published by the organisation defined above it.

Going further: schema for every blog article

Typing a new block for every article would be tedious. Instead, put the schema on the blog template page, and let Webflow fill in each article's details from its CMS fields. You write it once, and every article, old and new, gets its own correct schema.

The block below describes an article and its breadcrumb trail. Wherever you see a word in capitals, delete it and use Add Field to insert the matching CMS field. Add Field is the button in the custom code editor that lists your collection's fields.

<script type="application/ld+json">
{
 "@context": "https://schema.org",
 "@graph": [
   {
     "@type": "BlogPosting",
     "@id": "https://www.YOURDOMAIN.com/blog/SLUG#article",
     "mainEntityOfPage": {
       "@type": "WebPage",
       "@id": "https://www.YOURDOMAIN.com/blog/SLUG"
     },
     "headline": "NAME",
     "description": "SUMMARY",
     "image": "MAIN IMAGE",
     "datePublished": "PUBLISHED DATE",
     "dateModified": "LAST UPDATED DATE",
     "author": { "@type": "Person", "name": "YOUR NAME" },
     "publisher": { "@id": "https://www.YOURDOMAIN.com/#organization" }
   },
   {
     "@type": "BreadcrumbList",
     "@id": "https://www.YOURDOMAIN.com/blog/SLUG#breadcrumb",
     "itemListElement": [
       { "@type": "ListItem", "position": 1, "name": "Home", "item": "https://www.YOURDOMAIN.com/" },
       { "@type": "ListItem", "position": 2, "name": "Blog", "item": "https://www.YOURDOMAIN.com/blog" },
       { "@type": "ListItem", "position": 3, "name": "NAME", "item": "https://www.YOURDOMAIN.com/blog/SLUG" }
     ]
   }
 ]
}
</script>

Use these fields:

  • SLUG: the Slug field (it appears in four places).
  • NAME: the Name field, which is the article title (it appears twice).
  • SUMMARY: your short summary field.
  • MAIN IMAGE: your main image field.
  • PUBLISHED DATE and LAST UPDATED DATE: the date fields. In the field's popup, set the date format to YYYY-MM-DD, which is what Google expects.

A real example: schema on our own website

We went through this on our own site. We generated schema for every page with Webflow's AI schema markup tool, had an AI assistant review it, and then tested each page on the live site. Testing caught a real problem: Google flagged an invalid breadcrumb item on one of our articles, and the live page source showed empty title, summary and date fields. We fixed the field names and tested again.

The full troubleshooting story, with the error message and the fix, is in Why Google can't find your pages.

For readers who want to learn more

Want to know how the code in this article works? These are the key ideas behind it.

  • @context tells machines that the vocabulary is schema.org.
  • @type says what kind of thing is being described, such as BlogPosting.
  • @id gives a thing its own unique address, written like a link with a # ending. Other parts of the block can then point to it. Our article points to its breadcrumb and to the organisation that published it, so Google sees one connected picture instead of loose labels.
  • @graph groups several things in one block.
  • mainEntityOfPage says which page the article is the main subject of.
  • Dates should follow the ISO 8601 format, such as 2026-11-04. Formats such as "Nov 04, 2026" are readable to people but are not what Google expects.
  • One domain version. Use the same address style (for example https://www) in every @id and URL. Mixing www and non-www creates two identities for one page.
  • Required and recommended fields. Each type has a few fields Google needs for a rich result, such as a name on every breadcrumb item. Google's documentation for each type lists them.

A good rule is to describe only what is visible on the page. If your article shows an author and a date, the schema can say so. If it does not, leave those fields out.

How to test your schema

Never trust that code works because it looks right in the editor. Check what the live page really outputs.

  1. View the page source. Open the published page, press Ctrl+U (or Cmd+Option+U on a Mac), and search for ld+json. Make sure every value shows real text, not empty quotes.
  2. Run the Rich Results Test. Paste the page address. It reads the live page and shows which types Google found and any errors.
  3. Run the Schema Markup Validator. It checks your code against the full schema.org vocabulary, not only what Google uses for rich results.
  4. Use URL Inspection in Search Console. Click Test live URL to see the structured data Google sees right now. Click Request indexing afterwards so it recrawls the page.

New or fixed schema can take days to appear in Google's reports, so rely on the live tests first.

Common mistakes we ran into

We made several of these ourselves while setting up our blog template.

  • Empty values. A CMS field name that does not match your collection prints nothing, and the schema looks fine in the editor. Always check the page source. We cover that story in Why Google can't find your pages.
  • A missing name on a breadcrumb item. Google flags it as an invalid item.
  • Mixed domain versions. Some links used the address without www, others with it.
  • Editing field tokens by hand. It can add stray characters. Delete the token and re-insert it with Add Field.
  • Quotation marks in titles. A double quote inside a title ends the text early and breaks the code.
  • Dates in the wrong format. Use YYYY-MM-DD.
  • Forgetting to publish. Webflow's custom code does not appear on the live site until you publish.

Need help with this?

Need help with schema markup on your Webflow site? We can write it, connect it to your CMS fields and test it on your live site. Let's talk about your project.

‍