Add schema markup in 3 steps: write a JSON-LD block for the page’s main type, paste it into the page, and test it in Google’s Rich Results Test. Google’s case studies show rich results lifting clicks by 25% for Rotten Tomatoes and 82% for Nestle.

Key facts

  • Google recommends JSON-LD for structured data. Microdata and RDFa also work when the markup is valid.
  • Schema.org version 30.1, released 16 September 2026, lists 826 types and 1,540 properties.
  • Google’s search gallery listed 25 structured data features in June 2026.
  • Rotten Tomatoes measured 25% higher click-through on 100,000 pages with structured data. Nestle measured 82% higher on pages shown as rich results.
  • Markup must describe content visitors can see. It does not change rankings, and valid markup only makes a page eligible for a rich result.
  • FAQ rich results stopped appearing for most sites in May 2026, and now show mainly for government and health sites.

Pick the right type first

Start from the page’s main purpose, not from a list of types. A shop product page gets Product, a recipe gets Recipe, a local business homepage gets LocalBusiness, and a news story gets NewsArticle. Use the most specific type that fits, and check Google’s documentation for that feature before writing anything.

Google lists required and recommended properties for each feature, and every required property must be present for the page to be eligible. Fewer complete and accurate properties beat a long list of half-filled ones. For the background, see what schema markup is.

PageSchema type
Product pageProduct
Recipe pageRecipe
Event pageEvent
Local business homepageLocalBusiness
News storyNewsArticle
Blog postBlogPosting

Write the JSON-LD block

JSON-LD is a script block that sits apart from the visible text, so it survives redesigns better than formats woven into the HTML. It has three parts: the context, which points to schema.org, the type, and the properties for that type. Only include properties that describe content on the page.

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Article",
  "headline": "How to Add Schema Markup",
  "author": {
    "@type": "Organization",
    "name": "Team Pocketsquare"
  },
  "datePublished": "2026-12-01"
}
</script>

Generate the block with a real tool instead of typing it from memory. Google’s Structured Data Markup Helper tags elements on a live page and builds the code, and schema generators produce the same JSON-LD for common types. Always read the result before publishing it.

Add the block to your page

The right method depends on your site. A plugin is fastest on WordPress, manual code gives full control, and Google Tag Manager works when you cannot edit templates. Check first what your theme or plugins already output, because two blocks for the same type can cancel each other out.

MethodBest forEffort
SEO plugin such as Rank Math or YoastWordPress sitesLow
Custom HTML block in the editorOne page at a timeLow
Paste into the theme or templateSite-wide types such as OrganizationMedium
Google Tag Manager custom HTML tagSites you cannot edit directlyMedium

For site-wide markup such as Organization or WebSite, add one block to every page through the theme or tag manager. For page-specific types such as Product or Recipe, add the block only to the page it describes.

Test it before and after launch

Test the page in Google’s Rich Results Test before publishing. It renders the page, reports errors and warnings, and previews the rich result where one exists. Then check the same page in the Schema Markup Validator, which checks the syntax against the schema.org vocabulary.

  1. Run the Rich Results Test on the live or staged URL.
  2. Fix every error, and fix warnings for required properties.
  3. Publish, then re-test the live URL.
  4. Watch the enhancement reports in Search Console over the next weeks.

Search Console groups pages by type and shows which pages carry valid markup and which have errors, so template changes that break markup show up there first. It is part of the wider technical checklist; see SEO checklist.

What to do when no rich result shows

Valid markup only makes a page eligible. Google decides query by query whether to show a rich result, and it does not guarantee display. Some types have been narrowed: FAQ and HowTo rich results now appear mainly for government and health sites, and Google retired seven rich result types in 2025.

If nothing shows after a few weeks, check that the marked-up content is visible on the page, that no second plugin outputs a conflicting block, and that every required property is present. Then move on; chasing one rich result is rarely worth more than fixing the next page.

For tools that write the JSON-LD for you, see best schema markup generators.

FAQ

How do I add schema markup to a website?

Write a JSON-LD block for the page type, add it to the page through a plugin, your theme or Google Tag Manager, then test it in the Rich Results Test before publishing.

Which format should I use for schema markup?

JSON-LD, because Google recommends it and it sits apart from the visible text. Microdata and RDFa also work when the markup is valid.

Do I need a plugin to add schema markup?

No. A plugin is the fastest route on WordPress, but you can paste the same JSON-LD block into a template or add it through Google Tag Manager.

How do I test schema markup?

Run the page through Google Rich Results Test to check eligibility and preview the result, then use the Schema Markup Validator to check syntax against the schema.org vocabulary.

Why is my schema markup valid but no rich result shows?

Valid markup only makes a page eligible, and Google decides whether to show a rich result. Some types, such as FAQ, now appear mainly for government and health sites.

Sources