Moz Q&A is closed.
After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.
Woocommerce SEO and Product attributes
-
Hi friends! I have a question that is advanced Woocommerce and seo-related.
I'm seeing http://www.mywebsitex.com/pa_keyword/indexed in Google, but it cannot be properly optimized, and I would prefer to have a WordPress Page indexed for that keyword instead, which also lists those products and can be fully seo optimized. Woocommerce SEO plugin by Yoast lacks documentation and I have no clue if that would even fix this. I do have the Taxonomy (pa_keyword) set to not include these in the sitemap, but there doesn't seem to be a way to noindex/nofollow product attributes.
1. How can I best accomplish this?
2. Why are product attributes indexed by default? -
I actually looked into this a little further before developing conditionals, and I noticed it is possible in Yoast. You have to go to Products - Attributes, then the Gear icon, then select noindex.
-
Thank you, I think that is a good solution, and I've done similar conditional noindex tags on real estate websites, so I'll try it out for Woocommerce. I was wrong to think this should be included in Woocommerce, and instead it should likely be a component of the SEO plugin (in my case that is Yoast SEO)
-
Hi Justin,
Yes, you're correct in your response on Nov 26: XML sitemap exclusion won't guarantee that the pages aren't indexed, as they can still be discovered by Googlebot. Instead, you'll need to edit your Wordpress theme. I'll give some instructions for the 'Storefront' theme here, which should work in the majority of cases, but you may need to amend them if your theme is heavily customized.
When the page loads, it'll call the get_header(); Wordpress function, and pass the argument 'shop' to it, like so: get_header('shop');
That will prompt Wordpress to go looking for a file in the theme root called 'header-shop.php'. If that file doesn't exist, it'll load the default header.php file instead. If you do have a header-shop.php file, edit it to add the meta noindex tag on category pages. If you don't have a header-shop.php file, make a copy of header.php and rename the copy header-shop.php, saving it to the root folder of the theme.
Now in the header-shop.php file that you're amending or have just created, add something like the following before the closing tag:
if ( is_product_category() or is_product_tag() ) {
echo "";
}
You should take care to ensure that the conditional statement there is working: you don't want to inadvertently noindex all of your shop pages! So test carefully on a local version of the site, and make sure that you aren't seeing noindex tags in the source code of the non-taxonomy pages.
I'm afraid I don't know the answer to your second question. If I had to hazard a guess, I'd say it's because the developers would receive more criticism for enforcing noindex tags on certain categories of page than for not providing a noindex feature. If they put noindex on taxonomy pages by default, for example, and didn't provide an easy plugin for removing it, they'd probably get complaints about that. Or it just isn't an important enough issue in terms of the overall WooCommerce development roadmap.
-
That is only for the XML Sitemap exclusion though. Just because they are not included in the sitemap, doesn't mean they won't be indexed, correct? Shouldn't their be a way to noindex/nofollow these?
-
Hi Justin,
I also work with Woocommerce/ Yoast and in the settings of Yoast you go to XML Sitemaps and than the tab: taxonomies. There you can exclude the (product attributes. I had the same with all images who where indexed seperatly.
Hope this helps you!
Regards
Tymen
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
-
Mega Menus and SEO
Hi Everyone, I know this has been brought up before, but wanted your opinion for 2020. I have a new client that is hesitant to do a mega menu for their huge site due to the amount of links and "dilution". I have quite a few clients with mega menus with no problems at all from an SEO standpoint. But I can understand his perspective. I am suggesting that we have the main links (looking at GA) as the the navigation, then clicking them takes you to subcategory page listing all the subcats within. Problem is that the developer/designer has made this mega menu already and it is pretty slick. Now they already are killing it search-wise on Google, but don't have a mega menu or a secondary category page. Just a a category with too many products, so we are trying to go one way or the other. Any opinions on which route to best take from a user and SEO perspective?
Web Design | | vetofunk0 -
Reason for robots.txt file blocking products on category pages?
Hi I have a website with thosands of products. On the category pages, all the products are linked to with the code “?cgid” in the URL. But “?cgid” is also blocked in the robots.txt file for some reason. So I'm thinking it's stopping all my products getting crawled by Google. Am I right here? Is there any reason why a website would want to limit so many URL's? I'm only here a week and the sites getting great traffic, so don't want to go breaking it!!! Thanks
Web Design | | Frankie-BTDublin0 -
Client Portal and SEO Considerations?
Hi Moz and Moz fans, We are looking to add a client portal to the website. Basically, I haven't found too much on this with regard to SEO. The idea would be that certain parts of the website would be hidden under a pay wall and for subscribers, they would be able to see all content. I am wondering if anyone has any experience with that and what SEO considerations to take into account. One thing we are particularly concerned about is how Google will index the portions of the website behind the pay wall, if at all. Obviously, we would rather that they don't index it, so that people can't find a way to get to the info without paying. I would imagine it would have to do with the type of coding, however, I am not a coding guru, so I am not 100% on that. Anyway, anyone that has any experience in this kind of thing and can comment on this at all, any comment is welcome. Also, any documentation that could be helpful would be welcome too. Thanks
Web Design | | Brian_Dowd0 -
Does an age verification home page hurt SEO?
There's a microbrewery in our area that just launched its first website. It has the "verify your age" homepage (which is not really their homepage, but I don't know what it's called) before you can enter. It looks like this: http://angrychairbrewing.com/ Anyway, does this hurt them at all from a rankings standpoint? Also, assuming bots/spiders/ROGER can crawl sites like this, (which I think they would have to be able to do) how do they get around this verification? Thanks, Ruben
Web Design | | KempRugeLawGroup0 -
SEO and Squarespace? Is this Really an Option?
Hi all, Any feedback on Squarespace, SEO capabilites and ranking factors? I have a client wishing to use the platform and despite the good reviews, which appear to be from resellers by the way, the forums say not. Although apparently Rand Fishkin, SEOMoz (yes right here!) gave them a big thumbs up “The square space team have put together a remarkable platform, SEO friendliness! Really not sure here and don’t agree, there are many limitations and hosting with a template provider is always big no no. Cheers
Web Design | | VirginiaC
Virginia0 -
What seo benefit does setting up a photo gallery where each photo is a separate web page?
what seo benefit does setting up a photo gallery where each photo is a separate web page? My old SEO guy set up my photo gallery like that claiming that because each photo was a separate page, it added a big seo benefit and i never understood what he was talking about. Maybe alt text on the photo with key phrases in it pointing to my other pages to give my site a theme for google? I'm not really sure. He has since moved away and i am considering redoing the photo gallery to multiple images on one page to be more user friendly to my users. This photo gallery is 3 years old and the photos might have some page rank to them helping my site so i don't want to remove this gallery if there really is a benefit to it and it will hurt my site. I once removed four static page rank 3 pages from my site that weren't used for my site anymore and my rankings dropped 5 positions. Thoughts anyone? Thanks! Ron
Web Design | | Ron100 -
Site Activity, SEO, and behind login
I have a site that provides online education and as such, most of the user activity happens behind a login. This has me thinking about potential SEO impacts with a few questions that maybe someone could lend some light on: How important is activity (above just search activity) to the search engines Would it help to enter these pages, even though they're behind a login, into GA as we have with the front-end of the site Does a subdomain make a difference (right now we implement the course as a subdomain of the main site Lastly, as I was looking at compete.com, I am wondering how they get these use statistics?
Web Design | | uwaim20120 -
What is the difference of HTML5 and web 2.0? What is web 2.0 and is this better for seo?
A little bit confused with the new stuff. The web 2.0 webpages are so much better? What changes?
Web Design | | Naghirniac0