My Account

My Account

Are you looking for the best way to add schema to WordPress? We have got the perfect guide for you.

Schema markups are very useful to let search engines know what kind of content you have. As a result, this can help you rank higher in the search engines too. But before we look at how you can add schema to WordPress, you need to understand the basic concepts of schema markups first.

What are Schema Markups?

Schema markups are a type of microdata that can be added to your website’s pages, posts, or any other content to give search engines more information about the website’s content. Search engines identify these markups and utilize them to display rich snippets in search results. This gives the users more specific information about the website’s content.

Schema markup is also a standard that helps search engines know what to index on your site. It can include information about a business, product, event, recipe, or any other type of content that is relevant to a user’s search query. 

The schema markup code that you want to add to your website completely depends on your website’s content. However, they are mostly represented in JSON-LD format, which will be shown later in this tutorial. 

Benefits of adding a Schema Markup

There are many benefits of adding schema markup to your website:

  • Improved visibility: Schema markups provide rich snippets in search results which can improve a website’s visibility in search results. This helps the website stand out among other results when users search for a topic in search engines.
  • Enhanced user experience: Rich snippets generated from schema markup provide users with more information about a website’s content. As a result, it makes it easier for users to determine if a website is relevant to their search query.
  • Improved search engine ranking: Schema markups are considered a ranking factor by search engines. If you have properly formatted content, then search engines can take advantage of this markup in order to help you rank higher in their results pages. So websites with schema markups may rank higher in search results.
  • Provides accurate information: Schema markups help search engines understand the content of a website. This can lead to more accurate search results and a better overall user experience.
    Search engines use schema markup to understand the content on your site. The purpose of a schema is to help search engines index large amounts of content and make it easy for users to find what they need accurately.

Schema Markup vs Rich Snippets

Schema markup and rich snippets are related and similar to each other. But they have distinct concepts in the context of search engine optimization (SEO) and search engine results pages (SERPs).

Schema markup is a type of microdata that is added to a website to provide additional information to search engines about the content on a page. It helps search engines understand the context and content of a page more effectively. So more informative and relevant search results are displayed to the users.

For example, a schema markup for a recipe post may look like something as follows:

markup example add schema to wordpress

Rich snippets, on the other hand, are the enhanced search results that are displayed on SERPs as a result of the schema markup on a website. They typically include additional information about the content on a page. These may include an author, date, and ratings for a review or the ingredients and cooking time for a recipe. 

The additional information displayed in rich snippets can make search results more visually appealing and help users find the information they’re looking for more quickly and easily.

For example, the rich snippets on a search engine result may look as follows:

How to add Schema to WordPress?

There are two major ways to add schema to WordPress. 

  1. Using a plugin
  2. Manually

We’ll go through each approach in detail with a step-by-step guide. So let’s start with the plugin method first. 

1. Add Schema using a WordPress Plugin

Adding schema to WordPress using a plugin is easier compared to adding it manually. You don’t have to use any codes with this method because the majority of the work is done by the plugin automatically. 

There are many WordPress plugins to add schema markup to your website. However, we will be using the Schema & Structured Data for WP & AMP plugin for this tutorial. 

schema and structured data add schema to wordpress

It is a plugin specifically designed to help you add schema and structured data to your website with all the necessary features. The plugin is extremely easy to use and supports multiple schema types and conditional field types. 

But if you want to use any other plugin that suits your needs, you can go ahead and use it. The steps are similar to one another. So we’ll go ahead and install and activate the plugin first. 

1.1. Install and Activate the Plugin

To install the plugin, go to Plugins > Add New from your WordPress dashboard and search for the keywords of the plugin. After you see the plugin in the search results, click on Install Now.

The installation will take just a few seconds. You can Activate the plugin once the plugin is installed.

1.2. Configure the Plugin Settings

After the plugin is activated, go to Structured Data > Settings from your WordPress dashboard and open the Global tab. Then, select General Settings

Here, you will have to add all the general information that is needed to add schema markup to your WordPress website. You can select the about and contact pages of your website from the dropdown menu. 

Now you need to select the various sections of your website where you want to use the schema markups. We recommend you at least check the Website Schema and BreadCrumbs options here. But you can also select the other areas of your website as per your need. 

Once you’ve made all the necessary changes, click on Save Settings

Then, open the Knowledge Graph option under General Settings. Here, you can select if the knowledge base used by Google for your website is based on organization or person. You’ll need to add further details of your website depending on the data type of the knowledge base. 

There are additional options to add your social profile too. Google will automatically crawl them into the knowledge base.

Again, click on Save Settings after you make all the required changes. 

1.3. Add Schema Types 

Next, you need to add schema types to your WordPress website. Go to Structured Data > Schema Types from your WordPress dashboard and click on Add Schema Type. 

add schema type to wordpress

Then, you can select the schema type that you want to add on the next page. There are multiple schema types you can select from depending on your website. But for this demonstration, we will select the BlogPosting schema type. 

You can search the schema type from the dropdown option as well if you want to use any other schema type. Click on Next after you select the schema type. 

Then, you have to select the placement for the new schema. You can select various conditions to display the schema types as well if required. But since we just want to use it for blog posts here, we’ll just set it as Post Type Equals to post

You can add more conditionals if necessary, depending on the needs of your website. Click on Next to complete the process after you have added all the required conditions.

placements add schema to wordpress

The plugin will inform you that the new schema has been added successfully. You will be able to see it on the schema types now. 

It takes a few days for Google to crawl the new changes to your posts. So make sure that you check the search results regularly to ensure that the rich snippets are displayed properly.

2. Add Schema Markup Manually

If you don’t want to go through the hassle of installing a new plugin to add schema markup to your WordPress website, you can do so without using the plugins as well. But you must have basic knowledge of programming to use this approach. 

All you need to do is add a JSON-LD code to your web page or post. So let’s go ahead and generate a JSON-LD code.

2.1. Generate Code for Schema Markup

You can easily generate a JSON-LD code using a structured data generator like Simplified Search. There are many types of schema types that you can select depending on your website using it. But for this tutorial, we will select the schema markup for a recipe. 

So first, select Recipe as the schema markup that you want to create. 

Then, you’ll have to enter all the necessary information for your recipe schema. They include fields like recipe name, description, keyword, images, preparation time, cooking time, ratings, and so on.  

The code will be automatically generated as you go on adding the information. Finally, when you’ve completed adding all the necessary details, you will be able to see the complete code on the adjacent screen.

Now, you have to copy the schema code and add it to your WordPress website. So click on Copy to copy it. 

copy code add schema to wordpress

2.2. Add the Schema Code to your Website

Next, open the page or post editor of the page or post where you want to add the schema markup on your WordPress website. Then, add a Custom HTML block on the post and paste the code in the block.

Finally, Update the page or post after you add the schema code.

If you use the classic editor, you’ll need to open the Text editor and paste the code there.

text editor add schema to wordpress

Again, it will take a few days for Google to show the rich snippets on the search results. So you will need to check them regularly to ensure that they are displayed properly on your website.

Testing Schema Markup

You can test your schema markup before you add them to your WordPress website too. You can test them using tools like Rich Results Test. All you have to do is add the URL or the code of the schema markup here on the test page. 

We’ll be testing the URL first. So select the URL option and paste the link of your post here. Then, click on the Test URL button. 

The tool will take a few moments to analyze the given link. Then, it will show you the results of the test with detected structured data and additional resources. 

If you want to test the code, you can do the same as well. Just select the Code option and add your code to the text area. Click on Test Code to run the test.   

You’ll get the results of your code after a few moments. 

test code add schema to wordpress

So you can easily make changes to your codes, page, or even the post that contains the schema markup according to the test results. If it has any issues, you can resolve them with the help of these test tools.

Conclusion

This is how you can easily add schema markup to your WordPress website. They are very useful to help search engines understand your website content and provide relevant information for the users. To summarize, you can add schema markup in WordPress using two major ways:

  • Using a plugin
  • Manually

If you don’t have basic programming knowledge and don’t want to use any codes, you can use a plugin to add schema to your website. You can just install the plugin and start configuring the schema according to the content of your website. 

Alternatively, you can generate the schema markup tools yourself using structured data generators if you don’t want to use a plugin. Then all you have to do is add the code on the page or the post of your website. 

We’ve also included a bonus section to test your schema markup. You can test it using the URL or the code of the schema itself. 

So can you add schema to your WordPress website now? Have you ever tried it? Please let us know in the comments below.

Meanwhile, here are some of the articles that might be helpful for you to improve your WordPress website:

6 Best Plugins to Improve WordPress Comments

The WordPress Comment section is one of the most essential…

How to Add Products in WooCommerce: The Complete Guide

In today’s digital age, millions of people are in the…

Related posts

Wowmall Blocks < Beta > release is coming!

Subscribe to our beta teters program and get a free premium license!

Our beta testers programs allows you to receive the latest Wowmall Blocks releases. Beta versions includes the latest experimental features before they arraive to the market.