Split: Hide prices in google search (Locked for unlogin users)
-
Hi Artem,
How do I hide the pricing from Google?
Everything is up-to-date but pricing is still appearing on Google and is causing confusion for some of my customers.
Thanks.
Hello,
Could you please send us an example of the product which still has a visible price on Google search?
Kind Regards
Hi Artem,
It’s pretty much all of my products which have a price attached to them.
However, for an example – please view my private content
Have you added the code we gave in the previous topic? Please, send us a screenshot of where you placed it.
Kind Regards
No…
You said that this issue was going to be addressed in an upcoming update (which is already released).
Didn’t think there was any reason for custom code when an update resolving the issue was supposed to be released.
Thanks.
As we can see, you don’t have Login to see add to cart and prices
enabled on your website now. That is why the fix doesn’t work on your website https://gyazo.com/ae9059dfa045b398603be4f861999e51
I have to have this enabled because previously to me purchasing the theme I was told that the catalogue mode would act as I needed it..
Turns out I wasn’t told the complete truth and now have to use CSS to hide anything related to shopping.
So now you’re saying, due to being told misinformation I now can’t hide pricing from Google?
You can view the thread here outlining the issues I had pre-purchase and right after purchasing and trying to use catalogue mode:
https://xtemos.com/forums/topic/major-issue-with-pricing-being-shown-urgent/
Please advise.
Sorry, I posted a wrong reply and corrected it soon. It is not related to Catalog mode at all. It is about hiding price for non-logged in users.
In this case, try to add the following code snippet to the functions.php in the child theme
add_filter(
'woocommerce_structured_data_product',
function ( $markup ) {
unset( $markup['offers'] );
return $markup;
}
);