• Resolved ameraz

    (@ameraz)


    It appears to me that the suggested filter in https://jetpack.com/2013/06/10/moving-sharing-icons/ stopped working in newer versions of WP/WooCommerce.

    I’m having an issue were in Product pages I have 2 instances of sharing buttons being displayed. One being fired by sharing_display( '', true ); and the default one being printed after the cart form wrapped in a <div class="sharedaddy sd-sharing-enabled">.

    All of that with the following filter in place in functions.php

    function jptweak_remove_share() {
        remove_filter( 'the_content', 'sharing_display',19 );
        remove_filter( 'the_excerpt', 'sharing_display',19 );
    }
     
    add_action( 'loop_start', 'jptweak_remove_share' );
Viewing 1 replies (of 1 total)
  • Thread Starter ameraz

    (@ameraz)

    Nevermind, just found the answer.

    I just missed this new hook implemented in WooCommerce 2.6+

    // Product Single: Remove default sharing display
    remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_sharing', 50 );

    … to be placed within your theme functions.

    • This reply was modified 8 years ago by ameraz.
Viewing 1 replies (of 1 total)
  • The topic ‘Moving Sharing Icons in WooCommerce Product pages’ is closed to new replies.