manipulating googles rich snippets
-
So i’d first off like to suppress the “in stock” thats showing in googles rich snippets I found this code on the forums will it suffice ?
————————————————————————————function wc_remove_some_structured_data( $markup ) {
unset( $markup[‘offers’] )
return $markup;
}
add_filter( ‘woocommerce_structured_data_product’, ‘wc_remove_some_structured_data’ );
————————————————————————————-
2nd it would be better for me to use the appropriate schema as we are educational id like to find a way to use https://schema.org/Course in the rich snippets generated by woocomerce.. I’ve already got how would I go about including the course type and segmenting up the information properly ..would it even be doable by filters? could anyone point me towards a good tutorial on a similar issue ? im happy to manipulate my functions.phpThe page I need help with: [log in to see the link]
- The topic ‘manipulating googles rich snippets’ is closed to new replies.