Support » Themes and Templates » How do I add Noindex meta tag to Product Pages"

  • I’m using WordPress 4.1. and am trying to figure out where to put a no index meta tag on my woo commerce product pages. I think Google is penalizing my site because it views these pages as having thin content.

    You can see the type of page I’m talking about at

    Google Webmaster Tools site says, “place the following meta tag into the <head> section of your page: <meta name=”robots” content=”noindex”>”

    Problem is, I can’t figure out where the <head> code is for these pages.

    A web designer designed the them, and no matter how many times I asked him to walk me through the templates and other stuff, he never did. But I digress.

    I once was able to edit a typo on the pages via Theme Functions” (functions.php) in Appearance – Editor, but I didn’t see <head> anywhere in its code.

    Something else that looks like it’s connected to the product pages is called “content-single-product.php (woocommerce/content-single-product.php)” but it also doesn’t have <head> in the code.

    In fact, none of the 30 plus templates have <head> in their code.


    Thank you so much.

    T- McCracken
    humble cartoonist & reluctant web designer

Viewing 1 replies (of 1 total)
  • Hi

    Not sure if you still need a solution for this but you can put this in your functions.php and just change the category names in the array – ‘xxxx’to the ones on your site. You can add more categories if you need to by adding them with ,’xxx’ into the array.

    function add_tagseo_metarob()
    if (‘product’ == get_post_type()){
    if ( has_term( array(‘xxxx’, ‘xxxxx’), ‘product_cat’ )) {
    <meta name=”robots” content=”noindex”>


    add_action(‘wp_head’, ‘add_tagseo_metarob’);

Viewing 1 replies (of 1 total)
  • The topic ‘How do I add Noindex meta tag to Product Pages"’ is closed to new replies.