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
-
Migrating login page from website: SEO impact
Our current login page looks like www.website.com/log-in/. We are planning to migrate it to a sub directory login.website.com. For years, our login page is the top landing with highest visits after homepage. If we migrate this now, are we going to loose traffic and drop in rankings? Thanks
Web Design | | vtmoz0 -
Hiding Out of Stock Products for Users
Hello I have a website having products out of stock. Right now they are not listed on the website but working with 200 status code and they are indexed in Google as well. I need to understand if they affect my website? is it negative for SEO? what would be the best way to handle out of stock products? what if they are out of stock for a long time and discontinue for future? how search engine treat those products? are they consider as hidden links as they are not accessible from website as google says every page should link from atleast one static page. Please advise
Web Design | | ShaunPhilips0 -
H1 for users or SEO in this case
Hello, A client of mine has an online store with a pre-made cart. In this cart the name below the product in the category pages and the H1 tag on the product pages themselves are the same textbox entry (they have to be the same thing) We want to add two product features to the product name, but this will make the H1 longer and diluted. Let me give you a fictional example, A category page for cross-trainer shoes would have products in it. Below each product it says things like "Nike Sports One Shoes" and "Adidas Action Series Shoes". We want to make it "Nike Sports Shoes size 7 through 12 for running and walking" and "Adidas Action Series Shoes size 5 through 10 for running, walking, and hiking". The reason for the change is that we want users to know about size and one more important feature before they visit the product page in our case to save them time. But this changes the H1 on the product page (a pre-made cart problem) from "Adidas Action Series Shoes" which is the direct search term to "Adidas Action Series Shoes size 5 through 10 for running, walking, and hiking" which is not a direct search term. This dilutes the keyword in the H1 but will save users time. We will put a tag inside the H1 just so you know, so that we can bold the name of the product to still be seen clearly, I hope that's not an HTML SEO problem. **What do you think, for users with diluted SEO or better SEO in this case? Our product pages are our most important pages in this industry. Thanks**
Web Design | | BobGW0 -
SEO with Webflow CMS (webflow.com)?
Some friends of mine are having their site redesigned. The designer is using Webflow, which appears to be a visual drag-and-drop designer. Has anyone come across Webflow before? How is it for SEO? I'm not typically pleased with visual designers for SEO, but maybe somebody's had experience and thinks it's fine.
Web Design | | justin-brock0 -
Mobile and SEO
We are in the process of building a responsive version of our site for mobile users (currently about 20% of total traffic). What are the most important SEO considerations we should be aware of when it comes to this kind of project? Thanks
Web Design | | halloranc0 -
Changing design for a client. SEO concerns.
Hi there! A client requested me to change the look of his website entirely. It currently ranks #16 on Google with one of their main keywords. My problem is: The current site was made in a CMS I'm not familiar with and all of its pages urls are not SEO friendly (EX: http://www.mysite.com/index.php?option=com_content&view=article&id=49&Itemid=95). It is the first time I have come up with this situation so I would appreciate any tips or links to useful information. I tried searching in SEOmoz and came up with nothing. I'm sure this is a common problem though. Since they want a static website, for starters their page extensions will change from .php to .html I'm not 100% sure but I think this will be a problem for their current ranking in Google. Any ideas? Edit: I forgot to mention that all of the backlinks this site has points to their hompage as www.mysite.com, I guess this is good.
Web Design | | Eblan0 -
SEO For Lead Generation
From an SEO point of view, is it okay to have a sites focus to be Lead Generation? We will do a small amount of blogging and we'll also have longer form sales pages on the site... but the main focus would be lead generation pages that we'd target for the SERPs. TO ME... this seems fairly spammy. If we had 50-60 landing pages with only 100-300 words of copy on them. If this is "okay" then how much should we altar up these landing pages in terms of content? None of them will be direct copies... but I just want to make sure that we stay above a ratio that would be good for SEO. Then lastly... How many main terms can we expect to target with a landing page? Should we focus each landing page to a keyword, or can we target a few and still rank effectively?
Web Design | | lifeseo0 -
What site do you admire/like for its SEO - technical, content, whatever - and why?
I am gathering examples of great SEO'd sites and would appreciate your examples. The rationale can be anything - great SEO structure, great linking, solid content - you think stands out. Thank you!
Web Design | | josh-riley0