• Resolved paulharry

    (@paulharry)


    HI there,
    Looking at source code, and my page has a “nofollow” on my select button added by default.
    Do i need to get rid of this??? if so how ??? or is it okay?
    I am using Elementor / Generate Press / Yaost

    rel=”nofollow”>Select options

    Many thanks

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Aashik P – a11n

    (@aashik)

    Hi there!

    Looking at source code, and my page has a “nofollow” on my select button added by default.

    Yes! This was introduced in version 3.3.0

    Do i need to get rid of this??? if so how ??? or is it okay?

    I’d personally not get rid of it, as it was intentionally added to prevent duplicate content.

    If you’d still like to go ahead with making the changes, the following snippet should work:

    
    /**
     * Remove "nofollow" from add to cart / Select options buttons
     */
    
    add_filter( 'woocommerce_loop_add_to_cart_args', 'add_to_cart_args_remove_nofollow' );
    
    function add_to_cart_args_remove_nofollow( $args ) {
    	unset($args['attributes']['rel']);
    	return $args;
    }
    

    You can either use that snippet in your child theme or make use of a plugin like Code Snippets to implement the above snippet on your store.

    Thread Starter paulharry

    (@paulharry)

    Brilliant, many thanks for your help

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘“nofollow” confusion’ is closed to new replies.