• Hello,

    We are using the YITH plugin on our WordPress site and have noticed that thousands of URLs are being generated which are not being indexed by Google. We have attempted to use the SEO settings within the YITH plugin to set these URLs to “noindex”, “nofollow”, but these settings do not seem to be functioning, and we are unsure why.

    Additionally, we are using Rank Math as our SEO tool and are looking for a way to specifically set only the YITH-generated filter pages to “noindex”. Unfortunately, we have not been able to find specific settings in Rank Math to do this.

    We also found and followed the instructions in the article “How to configure Rank Math SEO plugin with Ajax product Filter” on the YITH support page, however, this results in the removal of the correct Canonical URLs, which is also not optimal for us.

    Could you please assist us in finding a solution to the following issues:

    1. Why the “noindex”, “nofollow” settings in the YITH plugin are not being applied.
    2. How to specifically set only the YITH filter pages to “noindex” in Rank Math without impacting the Canonical URLs.

    Would adding Disallow: /*?yith_wcan=* to the robots.txt be a good alternative solution?

    Thank you in advance for your assistance!

    Best regards,

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Iván Sosa

    (@ivansosa)

    Hi there,

    I see you are using the premium version of this plugin.

    Feel free to contact us on our official page to receive the proper support.

    Thanks for understanding.

    Did this get resolved re the creation of Urls ? I now have over 250,000 of them which as killed my organic google rankings ?

    I have raised a support ticket again as the 1st advice of noindex, nofollow didn’t work

    Thread Starter timotime

    (@timotime)

    I have received an answer, but I haven’t implemented it yet:

    The only way to set the filtered pages as no index no follow could be with the following code snippet

    if( ! function_exists( 'yith_wcan_robots' ) ){
    function yith_wcan_robots( $robots ){
    if( ! empty( $_GET['yith_wcan'] ) ){
    $robots['index'] = 'noindex';
    $robots['follow'] = 'nofollow';
    }
    return $robots;
    }
    add_filter( 'rank_math/frontend/robots', 'yith_wcan_robots' );
    }

    This code will check if the page is a filtered page checking the parameter in the url and it will show the noindex nofollow in the pages.

    About your questions:

    Why the “noindex”, “nofollow” settings in the YITH plugin are not being applied.

    This is because rank math doesn’t use the default WordPress and WooCommerce filters and for this reason it’s necesary to use the above code for filter the frontend and add the noindex and nofollow if the url include the yith_wcan parameter.

    How to specifically set only the YITH filter pages to “noindex” in Rank Math without impacting the Canonical URLs.

    Unfortunately, this is a question you should ask to the Rank math developers. We don’t have control on their settings and they can repply you in a better way.

    Would adding Disallow: /*?yith_wcan=* to the robots.txt be a good alternative solution?

    It could be a good alternative solution if you can prevent it from the robots.txt.

    I hope it helps you.

    Have a good day,
    XYZ.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.