• mitchelly

    (@mitchelly)


    Hi all,
    I already have a robot tag in my header;

    <meta name=’robots’ content=’index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1′ />

    But seem like as soon as I activate “YITH WooCommerce Wishlist” plug-in, it creates another set of Robot meta tag, and makes most of my indexed pages NOINDEX. So I basically end up with two Robots meta tags in my header, for my products is usually the same and both are identical but for the wishlist indexed pages it makes one says NOINDEX, meaning I have one saying index and the second one saying noindex and as result 9000 of my indexed pages got removed from Google.

    All the pages similar to the following have a Noindex tag as well.
    https://uggspecialist.com.au/product-category/women/page/11/?add_to_wishlist=35423

    How can I Disable or remove the robot meta tag created by WITH Wishlist plugin?

    This is what the YITH plugin creates in my header;
    
    <script>document.documentElement.className = document.documentElement.className + ‘ yes-js js_active js'</script>
    <meta name=’robots’ content=’index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1′ />
    
    Or this on some pages;
    
    <script>document.documentElement.className = document.documentElement.className + ‘ yes-js js_active js'</script>
    <meta name=’robots’ content=’noindex, follow’ />

    With kind regards
    Mitchell

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter mitchelly

    (@mitchelly)

    Hi
    Can anyone please tell me how I can disable YITH Wishlist’s plugin Noidex meta tag?
    Many thanks in advance
    Mitchell

    Héctor.G

    (@hectorgc)

    Hello there,

    You could achieve that by pasting the following code to the functions.php of your active theme:

    add_filter('yith_wcwl_skip_noindex_headers', '__return_true');

    Give it a try and let us know, please.

    Have a nice day!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Noindex robot tag’ is closed to new replies.