How to disable schema / structured data Yoast SEO plugin

Posted on: February 26, 2024

Written by: Mick Sherry

To remove all schema markup automatically generated by the Yoast SEO plugin, do the following:

1. Add this snippet to the bottom of your functions.php file or add it to your site using a code manager plugin:

add_filter( 'wpseo_json_ld_output', '__return_false' );

2. Save, and clear your website cache (if you are using a caching plugin.)

3. Run your website URL through the structured data testing tool to check that it has worked.

Leave a comment below if this has been helpful or if you are having any issues getting it to work.

Hopefully this has been helpful.

For further assistance regarding search engine optimisation, please check out my SEO consulting services or get in contact by calling +61 431 739 070.

Click-To-Call Send Message