Schema Markup is a snippet of code implemented on a website to enhance the search engine’s ability to provide users with more relevant and detailed results. The WordPress website’s Yoast SEO plugin is responsible for automatically adding this code. Yet, there may be instances where you may need to deactivate this function, such as if you are utilizing a different plugin or if your theme already has built-in schema support. In this tutorial, we will demonstrate how to disable the Yoast Schema feature.
Disable Yoast schema using a Code Snippet
One way to disable the Yoast SEO schema is by adding a small piece of code to your theme’s functions.php file or a site-specific plugin. Here’s the code you need to use:
Don’t forget to save the changes once you’ve added the code.
Disable Yoast schema using a Plugin
If you’re not comfortable with coding, another way is by using a plugin. The Code Snippets plugin is a great choice. After installing and activating the plugin, follow these steps:
- Go to Snippets > Add New.
- Give your snippet a name. For example, ‘Disable Yoast Schema’.
- Then paste the same code as above into the Code box.
- Click Save Changes and Activate.
That’s it! The Yoast SEO schema is now disabled on your WordPress site.
Conclusion
While the Schema Markup feature of the Yoast SEO plugin is beneficial, there are scenarios where you might need to disable it. Whether it’s because another plugin is handling your schema or your theme has built-in schema capabilities, you can easily disable the Yoast SEO schema using a piece of code or a plugin. We hope this guide helped you turn off the Yoast Schema on your WordPress site.
If you have any questions or need further assistance, feel free to comment below.