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}
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?
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.
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.
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.
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.
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.
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.
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.
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.
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.
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!
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.