Quote:
Originally Posted by Shoplifter
I looked through all of that and couldn't find any way at all to adjust the Yoast schema settings.
I searched and found that you can add:
add_filter( 'wpseo_json_ld_output', '__return_false' );
to the theme's functions.php and it will disable the Yoast schema.
This is not really a fix, but it will get you through the Google validation process. Yoast will hopefully fix this soon.
|
Yes this is what i added to the theme update that comes out tomorrow (I check if Yoast is enabled before), no choice until a fix is out from Yoast
// Check if Yoast is enabled
if( in_array('wordpress-seo/wp-seo.php', apply_filters('active_plugins', get_option('active_plugins')))
|| in_array('wordpress-seo-premium/wp-seo-premium.php', apply_filters('active_plugins', get_option('active_plugins'))) ){
// Remove yoast-schema-graph
add_filter( 'wpseo_json_ld_output', '__return_false' );
}
Regards,
Nick