Skip to content

Celebrating our new site: 30% off everything with code , until Dec 1.

Bright Themes

Schema markup for Ghost

Structured data (JSON-LD) for the posts Ghost doesn't describe on its own, such as an event, a product review or a recipe, so search engines can show them as rich results.

  • Works with any Ghost theme

New to Ghost snippets?

Build a card once, save it as a snippet, and add it to any post from the card menu. The tutorial shows each step.

When to use it

  • A post announcing a workshop, meetup or webinar, so it can appear in event results with its date and ticket link.
  • A review of a single product, with your own rating and its pros and cons, for review snippets in search.
  • Recipe posts on a food site, so they can appear in recipe results with the photo and cooking time.

When not to: For an ordinary article, add nothing: Ghost already marks every post up as an Article.

The code

Nothing shows on the page. Pick the example closest to your post, then paste it into the Code tab of Google's Rich Results Test (opens in a new tab) to preview the result.

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Event",
  "name": "Newsletter growth workshop",
  "description": "A one-hour live session on growing a Ghost newsletter, with questions at the end.",
  "startDate": "2026-12-04T17:00:00+00:00",
  "endDate": "2026-12-04T18:00:00+00:00",
  "eventStatus": "https://schema.org/EventScheduled",
  "eventAttendanceMode": "https://schema.org/OnlineEventAttendanceMode",
  "location": {
    "@type": "VirtualLocation",
    "url": "https://example.com/workshop/"
  },
  "image": [
    "https://example.com/content/images/2026/11/workshop.jpg"
  ],
  "organizer": {
    "@type": "Organization",
    "name": "Example Publication",
    "url": "https://example.com/"
  },
  "offers": {
    "@type": "Offer",
    "url": "https://example.com/workshop/",
    "price": "0",
    "priceCurrency": "USD",
    "availability": "https://schema.org/InStock",
    "validFrom": "2026-11-12T09:00:00+00:00"
  }
}
</script>

Add it to your site

  1. Open the post it describes and paste the code in Post settings › Code injection › Post header. Or add an HTML card (type /html) anywhere in the post and paste it there.
  2. Replace the example values with your own, keeping them the same as what the post says. Update the post.

How it works

Structured data describes what a page is about in a form search engines read directly: this post is an event on 4 December, or a review that gives this keyboard 4 out of 5, or a recipe that takes 25 minutes. Search engines can then show it as a rich result, with the date, the rating or the cooking time. The code is JSON-LD, a block of data in a script tag, so it shows nothing on the page.

The three tabs are worked examples of the types most Ghost publishers need. Copy the one closest to your post, replace every value with your own, and delete the fields you don’t need. Each type has its own required fields; Google’s structured data gallery (opens in a new tab) lists them.

Every value has to match what the post itself says: the same date, the same rating, the same ingredients. If you publish many posts of one kind, put its block in an HTML card and save it as a Ghost snippet, then change the values in each post.

What Ghost already does

Ghost adds structured data to every page itself: an Article for each post, plus the site, authors and tags. Don’t add a second Article; add only types Ghost doesn’t cover, such as Recipe, Product or Event. Breadcrumbs are best added in the theme, as described in Ghost breadcrumbs.

Things to know

  • Ratings: a review’s reviewRating is your own score. Add aggregateRating only if readers really rate the item on your site; made-up ratings go against Google’s guidelines.
  • Events: keep the date and time with their time zone (+00:00), and set eventStatus to EventCancelled or EventRescheduled if plans change, rather than deleting the block.
  • FAQ and HowTo: Google stopped showing these rich results (opens in a new tab) in 2023 (FAQ results now show only for a few government and health sites), so they’re no longer worth adding.
  • Check it: test the code, or the published post’s URL, with Google’s Rich Results Test (opens in a new tab) or the Schema Markup Validator (opens in a new tab).
Works with every Ghost theme, including ours. Something not right? Ask us.

All snippets

Launch a better Ghost site

From a solo newsletter to a busy newsroom, there is a theme that fits. No code needed.