Adding Recipe Schema for Rich Snippets

Adding Recipe Schema.org metadata to your blog posts in Shopify can improve how your blog posts show up in Google’s organic results.

JSON-LD for SEO support the recipe type once you add some additional data to your blog post. This will need to be done for each blog post you’d like to show up as a recipe.

Video illustrating how to add metafields

Add metafields

Using your metafield tool of choice, add the following fields to the blog post under the jsonld namespace. The only required one is the recipeCategory but the others are highly recommended as Google will use that data in their analysis and Rich Results.

  • recipeCategory – (required) the category for the recipe.
  • cookTime – how long it takes to cook the recipe. This must be in the ISO 8601 duration format. e.g. 90 minutes would be PT90M or PT1H30M
  • prepTime – how long it takes to cook the recipe. This must be in the ISO 8601 duration format. e.g. 90 minutes would be PT90M or PT1H30M
  • totalTime – how long it takes to cook the recipe. This must be in the ISO 8601 duration format. e.g. 90 minutes would be PT90M or PT1H30M
  • calories – number of calories in the recipe
  • recipeIngredient – the list of ingredients used in the recipe, separated by a semi-colon (;)
  • recipeInstructions – the step-by-step instructions for the recipe, seperated by a semi-colon (;)
  • recipeCuisine – the region associated with your recipe. e.g. American, French, Mediterranean.
  • keywords – other descriptive terms for your recipe, separated by a comma (,). Don’t use the ones you added to the recipeCategory or recipeCuisine.

The following data is optional. If you don’t enter it into a metafield, JSON-LD for SEO will use the values from your Blog Post.

  • name – recipe name, this will default to the name of the blog post title
  • description – description of the recipe, this will default to the blog post description
  • author – recipe author, this will default to the blog post author
  • image – image for the recipe, this will default to the blog post’s featured image

Testing the Recipe Schema

recipe-json-ld

Once these metafields have been created and saved for the blog post, you can use Google’s Structured Data Tool to verify the data is correct.

It will take some time before Google updates their results to include your recipe Rich Snippet.