• Hello!

    I am working on a site that I recently added a “Related Products” section to (located at the bottom of each product page). I used the UABB Module “Woo – Products” and got the products all set up how I would like them, but the “SELECT OPTIONS” buttons (Add to Cart buttons) seem to have a “nofollow” attribute added to them. Is there a way to remove the “nofollow” tag? Thank you for your help!

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

Viewing 1 replies (of 1 total)
  • Plugin Support Team Brainstorm Force

    (@brainstormteam)

    Hello ?@justahumblewpuser,
    ?
    ?We use the WooCommerce function to render Add to Cart buttons in our module which adds the rel attribute set to “nofollow” by default.
    ?
    ?While I did some research and found a filter that you can use to remove it. Here is the code:
    ?
    ??add_filter( ‘woocommerce_loop_add_to_cart_args’, ‘remove_rel’, 10, 2 );
    function remove_rel( $args, $product ) {
    unset( $args[‘attributes’][‘rel’] );
    return $args;
    }

    ?
    You will need to add the above code in your theme’s functions.php file.
    ?
    ?Hope this helps.

Viewing 1 replies (of 1 total)
  • The topic ‘UABB Woo – Products nofollow attribute’ is closed to new replies.