Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Cena (a11n)

    (@cena)

    Hi Sandra,

    Often this is caused by your theme. Could you try to switch to a different theme like Twenty Sixteen for a few minutes, and see if that helps?

    If it does, I would recommend looking at the code in single.php, in order to find out where the second row of sharing buttons is added.

    Best,
    Cena

    Thread Starter Sandra Boulou

    (@debby78018)

    Hi Cena,
    The problem is in products (in woocommerce) not in page or posts
    Thanks for your help.
    Best,

    Sandra

    Plugin Contributor Lisa Schuyler

    (@lschuyler)

    In Jetpack 4.0, we indeed added a little compatibility feature to sites running Woocommerce and Jetpack. We moved sharing buttons from the bottom of the product pages to the top:
    https://github.com/Automattic/jetpack/pull/3612/

    Unfortunately, it looks like another plugin, or your theme, was already doing that on your site. To remove the extra set of buttons, you can paste the following in your theme’s functions.php file, or in a functionality plugin:

    function jeherve_remove_jp_woo_buttons() {
    	remove_action( 'woocommerce_share', 'jetpack_woocommerce_social_share_icons', 10 );
    }
    add_action( 'loop_start', 'jeherve_remove_jp_woo_buttons' );

    That will remove one set of buttons.

    Thread Starter Sandra Boulou

    (@debby78018)

    Hi Lisa,
    I understand, so I have insert your code and it is working well now no double sharing button on products with woocommerce !!
    Thanks a lot for your help ;)))
    Best,
    Sandra

    Plugin Contributor Lisa Schuyler

    (@lschuyler)

    Great!! You’re welcome!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Sharing buttons are shown twice in products (woocommerce)’ is closed to new replies.