Support » Plugin: AddToAny Share Buttons » duplicate buttons shown on woocommerce

  • Resolved proson1


    not sure why there are duplicate buttons appeared on woocommerce single product page.

    Please check and see how it is fixed.

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

Viewing 1 replies (of 1 total)
  • Plugin Author micropat


    It means the theme isn’t templated for the woocommerce_share action, which is WooCommerce’s special ‘sharing block’ for share buttons.

    Until the theme is fixed for that, you can remove the extra set of buttons in one of two ways.

    Hide one set of buttons by placing a line of CSS code in your “Additional CSS” box in Settings > AddToAny:
    .product .addtoany_list { display: none; }

    Or, remove the action using your functions.php or similar:

    function remove_addtoany_in_woocommerce_sharing_block() {
    	remove_action( 'woocommerce_share', 'addtoany_woocommerce_share', 10 );
    add_action( 'loop_start', 'remove_addtoany_in_woocommerce_sharing_block' );
Viewing 1 replies (of 1 total)
  • The topic ‘duplicate buttons shown on woocommerce’ is closed to new replies.