View Single Post
Old 08-22-2020, 08:03 PM  
hdbuilder
Confirmed User
 
hdbuilder's Avatar
 
Industry Role:
Join Date: Jun 2012
Location: Canada
Posts: 1,338
Quote:
Originally Posted by Shoplifter View Post
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
__________________

ROBO SCRIPTS | WP CAM PLUGIN - Scripts To Promote Cam Sites - Chaturbate, BongaCams, Streamate, LiveJasmin, Stripchat...

The Cam Site Builder, The Cam Multi Site Builder -> MULTIPLE CAM SITES IN ONE
hdbuilder is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote