How to deactivate Structured Data Generation in Yoast SEO

Yoast SEO has started to integrate Structured Data in version 11.0. However it’s still not possible to create your own schemas without the knowledge of the programming language PHP. If you want to totally remove Structured Data generated by the plugin, follow the instructions below. In the end I also clarify how it’s possible to remove Structured Data generated by Yoast SEO for WooCommerce plugin.

How to remove Structured Data from Yoast SEO (Premium)

Option 1: Use SNIP settings

SNIP, my Structured Data Plugin for WordPress, already has a settings option that alows you to remove the schemas generated by Yoast.

All you have to do is to go to snip -> Settings and check the option “Remove Yoast schema”.

That’s it! 😉

The settings screen of SNIP with the checkbox that allows to remove structured data from Yoast

Option 2:

If in any case, you do not use SNIP, you can use this filter in any of your custom plugins and/or your themes functions.php to remove Structured Data generated by Yoast SEO:

add_filter( 'wpseo_json_ld_output', '__return_false' );

How to remove Structured Data from Yoast SEO for WooCommerce

SNIP currently has no option to remove Structured Data generated by Yoast SEO for WooCommerce. However I wrote a little plugin that you can use to remove them. You can download it here as a ZIP file.

  1. Log-in to your WordPress dashboard
  2. Go to Plugins -> Add new
  3. Click the “Upload Plugin” button
  4. Select the downloaded ZIP file.
  5. Activate the Yoast SEO: WooCommerce Structured Data Remover plugin.
  6. That’s it!