SEO Issue with Wishlist URLs – Advice Needed for rel=”nofollow” Implementation

This topic has 4 replies, 2 voices, and was last updated 1 weeks, 5 days ago ago by Jack Richardson

  • Avatar: Kestutis
    Kestutis
    Participant
    May 26, 2025 at 07:43

    Specifically, Screaming Frog reports that internal URLs containing the ?add_to_wishlist= parameter (e.g. https://www.mysite.lt/account/?et-wishlist-page&add_to_wishlist=12345) are being blocked by my robots.txt file, which includes the line:

    Disallow: /*add_to_wishlist

    These wishlist URLs are generated throughout the site and crawled by search engine bots, causing unnecessary crawl budget usage and resulting in SEO tool warnings.

    Since these links do not contribute SEO value, I would like to keep them disallowed in robots.txt but prevent search engines from attempting to crawl them in the first place.

    **Question:**
    Could you please advise how I can add a rel="nofollow" attribute to all “Add to Wishlist” links generated and header by the XStore theme Ideally, I would like to implement this in a child theme or via a filter hook.

    Thank you in advance for your help and guidance!

    Images:
    https://prnt.sc/9N1oGamHXccw

    Content is visible for topic creator and
    support staff only.
    3 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    May 26, 2025 at 08:50

    Dear @Kestutis,

    Thank you for providing the correct access credentials, which allowed us to log in without the need for further correspondence.

    We have implemented some improvements in the following file:
    et-core-plugin/packages/xstore-wishlist/xstore-wishlist.php
    These changes will be included globally in the next update of the theme.

    Additionally, to add a custom attribute to the wishlist links, we have inserted the following code into your child theme’s functions.php file:

    add_filter('xstore_wishlist_product_query_atts', function($atts) {
        $atts[] = 'rel="nofollow"';
        return $atts;
    });

    Please check the functionality now and let us know if everything is working as expected.

    Best regards,
    Jack Richardson
    The 8Theme Team

    Avatar: Kestutis
    Kestutis
    Participant
    May 26, 2025 at 09:00

    Thank you for the quick fix – I appreciate the update and the filter added to the child theme.

    After testing the functionality, I noticed that the rel="nofollow" attribute was only added to the wishlist links on single product pages.

    However, wishlist links are also present in quick view modals, and header – and these still lack the rel="nofollow" attribute. This continues to cause SEO issues as internal links to blocked URLs remain crawlable.

    Would it be possible to apply the same filter or attribute globally to **all wishlist links** across the entire site, including:
    – Header mini-wishlist (if applicable)

    Example:
    https://prnt.sc/1oefZPcKMxtu
    https://prnt.sc/6s1AkbmqPbrC

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    May 26, 2025 at 09:13

    Dear @Kestutis,

    We kindly ask you to check the following link: https://prnt.sc/OUBjO6DoBodJ.

    Please note that implementing such attributes within the quick view content is not entirely feasible or advisable. This is due to the fact that the content is loaded via AJAX, and as a result, these links are not rendered on the page in a way that allows them to be indexed by search engines.

    The same applies to the wishlist items displayed in the wishlist dropdown. Since search engine indexing is performed as a non-logged-in user, the wishlist will appear empty in such cases.

    Thank you for your understanding.

    Best regards,
    Jack Richardson
    The 8Theme Team

  • Viewing 4 results - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.Log in/Sign up

Helpful Topics

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.