/ Documentation /General/Disable Schema Markup on AMP Pages/Posts for Reader Mode

Disable Schema Markup on AMP Pages/Posts for Reader Mode

Schema Pro version 1.5.0 and above automatically adds structured data to AMP pages. In case you wish to disable it, use the following filter.

You would need to copy and paste the following code into the child theme’s functions.php file.

add_filter( 'wp_schema_pro_remove_amp_schema_markup', 'disable_amp_schema', 10, 1 );

function disable_amp_schema($bool)
{
return false;
}
Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
%title %title
On this page
Scroll to Top