Add structured data (schema markup)

Machine-readable labels that earn rich results like star ratings in search.

What it means

Structured data (JSON-LD) explicitly tells search engines what your content is — a product with a price, a business with opening hours, an article with an author.

Why it matters

Pages with valid schema can win rich results — star ratings, prices, FAQs directly in search — which visibly increase click-through over plain blue links.

How to fix it

  1. Pick the schema type that matches the page: LocalBusiness, Product, Article, FAQ, or BreadcrumbList.
  2. Generate the JSON-LD with Google's Rich Results template or a schema generator, then paste it before </head>.
  3. On WordPress, Rank Math and Yoast output most schema types from fields you already fill in.
  4. Validate with the Rich Results Test and fix any errors it reports.

Common mistakes

How to check it worked

Paste the page URL into Google's Rich Results Test. It lists every detected type and any errors or warnings.

Helpful tools

Not sure if this affects your site? Analyze your website for free or compare it with a competitor.

Related guides

Browse all 38 fix guides