• Resolved julianelliott

    (@julianelliott)


    Hi there.

    I’ve been looking into improving the SEO on my website and discovered on a few pages the nofollow attribute is being added.

    This attribute seems most prevalent on pages that contain Woo Product Grid.

    I’ve contacted Elementor as my site is built using their software however they have said it is a WooCommerce issue.

    Looking at previous support tickets this seems to be something that is cropping up frequently with WooCommerce which makes me wonder why it isn’t being looked at more closely.

    I’m not looking to remove the nofollow on things such as add to cart etc. It’s just where you can see on my page a link to click through to a product.

    If someone can explain how this can be removed I’d be very grateful.

    Thanks

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

Viewing 13 replies - 1 through 13 (of 13 total)
  • Stef

    (@serafinnyc)

    Hey there @julianelliott how did you change the ATC button to View Details? Since you are using Elementor for this and we do not support 3rd party plugins here in the forum it’s best to seek guidance from them in their Facebook Group. Adding Elementor to that page makes it difficult to hook that now. But if you tell me how you changed the ATC to View Details I may be able to write something using the filter woocommerce_loop_add_to_cart_link_describedby_{$product_id}

    Thread Starter julianelliott

    (@julianelliott)

    Thanks but I didn’t actually build the site. My web designer did.

    I’ve already been in touch with Elementor who have said it is a Woo Commerce thing so they need to answer.

    Is there any way of actually getting in touch with Woo Commerce directly?

    Stef

    (@serafinnyc)

    Hi again @julianelliott unfortunately we don’t support 3rd party plugins per forum rules. Did you seek support from Elementor directly or on their forum page?

    There’s also an Elementor Group on Facebook.

    Thread Starter julianelliott

    (@julianelliott)

    I have already spoken to Elementor about this and they have said it’s a Woo Commerce issue. I did mention in my first post about that.

    So in the background code it says that it is being controlled by a Woo Commerce which is why I am here.

    Stef

    (@serafinnyc)

    Sorry you’re so frustrated @julianelliott, but as I explained twice before you are customizing the way WooCommerce functions by using Elementor. Which puts our ability to help you outside this forum’s guidelines.

    I also mentioned the Elementor Facebook Group where lots of Elementor devs hang out and may provide a solution. It’s not a company run group and they encourage questions like this.

    Since your designer customized the ATC and you don’t know how they did that, it’s hard for us to assist with a proper hook. Plus, most hooks won’t apply anyway because they cannot override Elementor. You’d have to customize the archive template thru the child theme and that requires a dev. Again, putting you outside this forum’s assistance.

    Thread Starter julianelliott

    (@julianelliott)

    Having done an extensive search on this issue before posting here it seems that I am not the first website owner that has come up with this problem.

    Other people have expressed their frustration at WooCommerce adding in the nofollow tag in the past and yet nothing ever seems to be done about it.

    I have contacted Elementor and they expressly said it was a WC issue and not Elementor.

    Stef

    (@serafinnyc)

    Oh I’m 100% sure you’re not @julianelliott The nofollow is added for a reason. If it wasn’t there you’d dilute your site’s SEO value. These links typically do not add value to a site’s SEO content.

    You also have the option of blocking them thru a robots.txt file as well.

    Stef

    (@serafinnyc)

    This hook I created worked for me in my test site, but again, since you don’t know how your designer hooked the ATC button I can’t guarantee it’ll work.

    Add this to your child theme only in the functions file

    function remove_nofollow_from_add_to_cart($button, $product) {
    $button = str_replace('rel="nofollow"', '', $button);
    return $button;
    }
    add_filter('woocommerce_loop_add_to_cart_link', 'remove_nofollow_from_add_to_cart', 10, 2);

    If this doesn’t work, there’s not much more we can do for you. I’d ask your designer how they customized the ATC button.

    Thread Starter julianelliott

    (@julianelliott)

    After having run a SEM Rush Site Audit it got flagged up.

    From my understanding, and please correct if I am wrong, it isn’t helpful having those nofollow links.

    And if you take a look here it seems that this question I am asking has been happening for a while: https://stackoverflow.com/questions/41240087/how-to-remove-nofollow-link-from-woocommerce-add-to-cart-button-using-woocommerc

    With regards to the ATC I don’t know. I can’t ask him yet as he’s away. The button he has put there links straight to a page. Then on the next page is where the ATC button is.

    Plugin Support Zubair Zahid (woo-hc)

    (@doublezed2)

    Hello julianelliott,

    Thank you for contacting WooCommerce support.

    To confirm how many “nofollow” attributes are added by WooCommerce, I suggest performing a conflict test. I am saying this because your site shows a lot of “nofollow” attributes which might be added by different plugins or the theme.

    You may create a staging site if you do not want to disturb the live site.

    Looking forward to your response. ??

    Best regards.

    Thread Starter julianelliott

    (@julianelliott)

    thanks for that. I’m at the point now where I’ll have to revert to my developer before going forward.

    I did email WooCommerce support who said it was an Elementor problem. Elementor say it’s WooCommerce. I’m tempted to copy both support teams in to an email and get them speaking to one another as it’s frustrating.

    Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there,

    I understand your frustration. Have you tried running a conflict test yet? If not, it can help determine if the issue is related to the WooCommerce plugin or another one. I recommend cloning your site to a staging environment to run the conflict test as described in this guide, so your live site and customers won’t be affected.

    Once you complete the test, you should be able to identify the plugin causing the issue. From there, you can reach out to the plugin’s support team for further assistance.

    Let me know how it goes!

    Plugin Support Feten L. a11n

    (@fetenlakhal)

    Hi! We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if and/or when you are ready to continue.

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