Exclude price in rich snippet markup
-
Our site has their prices hidden for non logged in users.
Its a woocommerce built site and the rich snippet markups are added by woocommerce.
I would like to remove the markup for the price becouse : 1, we would like our customers to register for prices. 2 i dont want to get penalties for not showing the same thing to visitors as to "google" ..
Any help or thoughts on this one?
Thanks
/ Jonas
-
That lead me to the right direction!
Got it all working with price excluded in the rich snippet, still validating as a product with reviews, sku and description.
My solution..
Create following directories:
wp-content/themes/[your_theme]/woocommerce
wp-content/themes/[your_theme]/woocommerce/single-product
Create price.php and ad it to /single-product
Ad this code to the custom price.php
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}global $product;
?>
get_price_html(); ?>
// Jonas
-
I don't know what kind of Woo + WordPress + theme you use. But you can download everything into separate folder and use tool to find text in all files. You just need to look who is responsible for "schema.org/Offer" adding into HTML.
Here is shoot in the dark:
https://webdesires.co.uk/blog/add-schema-to-woocommerce-products/
you just need to reverse this change.As i said - it's just guessing. Can be also in plugin somewhere.
-
Hi Peter and thanks for your respons!
Any tips on how to do this patch in an easy way?
-
Here is example of Rich Snippet w/o offer (with price):
ACME
Executive Anvil
Sleeker than ACME's Classic Anvil, the
Executive Anvil is perfect for the business traveler
looking for something to drop from a height.Product #: 925872
4.4 stars, based on 89 reviewsAs you can see this code can be validated and works OK. Now you need to go back in Woo and make "patch" to remove http://schema.org/Offer where is price located. OR temporary disable them.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Max-snippet max length
Regarding Google's new max-snippet:[number], this is specifically for the length of the meta description? Also, does anyone know what the max character length is?
Technical SEO | | SoulSurfer81 -
Structured markup for wordpress
Hello, I am having problems with marking up my WP posts. I used the All-in-One which seems to be the most user-friendly, except when I denote the aspects of the "article" and update, the markup shows up as a box at the bottom of the post (even though the info is in the text). How do I mark these up for Google without having the unseemly box at the bottom? Thanks so much in advance for any help! Btw, I am not altogether comfortable just yet on manual schematic markup (if you have a really basic manual markup that will let me do so across various platforms, I would also appreciate the recommendation). Thanks!
Technical SEO | | lfrazer1 -
How to delete video rich snippets?
Hi mozzaholics, At first I was very happy to have video snippets appear in Google (200 pages), but now after 6 months I see a drop of almost -30% in traffic, whilst the average rank stayed the same, compared to the star snippets I have for other pages. So I want to remove the video snippets and have the old rich snippets back. I tried removing the videositemap and google's the structured data tool doesn't show video snippets. Does anybody know what else I can do to remove the video snippets? Is there anybody who succeeded deleting them? Please share your wisdom. Ivo
Technical SEO | | SEO_ACSI1 -
Rich Snippets for recipe pages not appearing in Google
We are building a baking website and have implemented rich snippets for our recipe posts. We noticed inconsistent results on competitor sites, and then noticed it was happening to our links as well. Our content has only been live for a week, I know it may take a couple weeks, but other sites that have had their content around for a while have this happening too. For example: When you use this tool: http://www.google.com/webmasters/tools/richsnippets And put in this link (competitor): http://food52.com/recipes/864-deep-chocolate-cake-with-orange-icing and press "Preview," you'll see a nice rich snippet preview. Now go ahead and search for "Deep Chocolate Cake with Orange Icing" using Google, you will see that in the search results the image for this link is not appearing. This is happening to all of our links as well. Why? We are using the schema recipe format, but apparently that doesn't guarantee the image will appear in the actual search results. How does Google determine which images are displayed in rich snippets and which aren't?
Technical SEO | | bakepedia0 -
Is it worth adding schema markup to articles?
I know things like location, pagination, breadcrumbs, video, products etc have value in using schema markup. What about things like articles though? Is it worth all the work involved in having the pages mark up automatically? How does this effect SEO, and is it worthwhile? Thanks, Spencer
Technical SEO | | MarloSchneider0 -
How to Activate the Review Rich Snippets
Hi! I added microdata markup to a page with 10 reviews of a type of product (e.g. red basketball shoes). I used the aggregate review microdata markup so that when you use the Google rich snippet it shows that Google "sees" the rich snippet data for an average of 4 stars for 10 reviews. But when I search for the phrase, the search result doesn't show the review rich snippet. Do you have an idea why this is? Thanks!
Technical SEO | | ProjectLabs0 -
Keyword rich domains
Hi, Our site is beingthere.com.au We are in the business of video conferencing in Australia. I was wondering if there would be any benefit of purchasing keyword rich domains such as www.videoconferencing.net.au www.video streaming.net.au What would be the benefit(s)? And How would I go about using these domains to maximise SEO benefit? Thanks Dan
Technical SEO | | dantmurphy0 -
Is Adobe Acrobat the best for making PDF documents in terms of seo and price?
As we add PDF documents to our website, I want to take it up a notch. In terms of seo and software price, is Adobe Acrobat the only choice? Thanks! No Mac here. I should clarify that I can convert files to PDFs with Microsoft Word and add some basic info for the search engines such as title, keywords, author, and links. This article inspired me: www.seomoz.org/ugc/how-to-optimize-pdf-documents-for-search I can add links back to the page when I create the PDF, but we also have specific product PDFs that suppliers let us copy and serve from our server--why use their bandwidth. Much as you would stamp your name on a hard copy brochure the vendor supplies, I want to add a link to our page from those PDFs. That makes me think I should ask our supplier to give me a version with a link to our page. Then there is the question: is that ok to do? In the meantime, I will check TriviaChicken's suggestions and dream about a Mac, Allan. Thanks
Technical SEO | | zharriet0