search
Log In
Welcome to Blogiestools Ask, a blogging community where beginner and professional bloggers come to seek answers from other bloggers’ experiences.

You can ask questions related to starting a blog, monetizing a blog, marketing a blog, managing a blog, fixing a problem, the best web tech tools to use, etc.

Register or log in to ask questions or edit comments.
1 vote
I cannot seem to find a way to disable Yoast SEO schema data
in Fixing Blog Problems

1 Answer

0 votes
 
Best answer

To disable Yoast Schema data on Woocommerce single product pages then add the following code below to the functions.php file in your theme.  

//remove Yoast schema in product pages  
function disable_yoast_json_ld_blogiestools( $bool, $context ) {  
    if(is_product()){ return false; }
    return $bool;  
};  

// add the filter 

add_filter( 'wpseo_json_ld_output', 'disable_yoast_json_ld_blogiestools', 10, 2 );


If you don’t know how to use the functions.php file, then send us a message so that we can share with you a free plugin made from the same code.

15.3k points

Related

1 vote
1 answer
I want my mediawiki URLS to be short and SEO friendly.
posted Oct 29, 2021 in Fixing Blog Problems anonymous
1 vote
1 answer
I want to change the WooCommerce completed order file download link text sent to emails for digital download products
posted Nov 8, 2021 in Fixing Blog Problems anonymous
0 votes
1 answer
I am looking for ways to disable lazy load in a specific image in visual composer
posted Nov 4, 2021 in WordPress Problems anonymous
0 votes
1 answer
Hi Here is the error. Any thoughts on getting this working - being added to child theme functions.php - exactky as your post suggests. All help is appreciated. Thanks Uncaught ArgumentCountError: Too few arguments to function ... WPSEO_WooCommerce_Schema::should_output_yoast_schema() #4 wp-includes/class-wp-hook.php(307): Yoast_WooCommerce_SEO->initialize_schema() #5 wp-includes/class
posted May 9, 2022 in WordPress Problems NICKCM 120 points
0 votes
1 answer
I want to have some content deleted on bing search engine
posted Dec 31, 2021 in General anonymous