Tip Press Ctrl + K to search templates, guides and docs. Tap the magnifier to search. Browse templates

How to Add Schema Markup to Blogger

By Garudavix · Blogger SEO · Published · 2 min read

Schema markup is extra information in your page that describes its content in a standard vocabulary from schema.org. Search engines can use it to understand a page better. It does not guarantee any special search appearance.

Check what your template already adds

Many Blogger templates already include structured data. Adding a second copy can create conflicts. View the source of a post page, search for application/ld+json or itemscope, and note what exists before changing anything.

Choose the right type

Use types that match the real content:

  • BlogPosting for blog posts.
  • Organization or WebSite for your site identity.
  • BreadcrumbList if your pages show breadcrumbs.

Do not mark up reviews, ratings or prices that do not exist on the page. Markup must match what visitors can see.

JSON-LD structure

JSON-LD is a script block in the page. A BlogPosting looks like this, with placeholders to replace by your template’s own data tags:

{
  "@context": "https://schema.org",
  "@type": "BlogPosting",
  "headline": "POST TITLE",
  "datePublished": "PUBLISH DATE IN ISO FORMAT",
  "author": { "@type": "Person", "name": "AUTHOR NAME" },
  "mainEntityOfPage": "POST URL"
}

Add it to the theme

Back up your theme, then open Theme > Edit HTML. Place the script inside the head section, limited to post pages with a conditional so it does not appear on the homepage. Fill each placeholder with the Blogger data tag your theme uses for that value. The Blogger layouts tag reference in Blogger’s help documentation lists the available data tags, and the exact tags can differ, so confirm them before using them.

Test it

Use Google’s Rich Results Test and the Schema Markup Validator on a live post URL. Fix errors, and remove anything that warns about data that is not on the page.

Keep it accurate

Update the markup when your site changes, and remove it if you are not sure it is correct. Wrong markup is worse than none.

Open full results page