• Resolved Allyson Souza

    (@allysonsouza)


    Hi,

    I had the following code in my functions.php to hide the Jetpack Sharing Buttons in the_content and the_excerpt:

    function remove_jetpack_sharing() {
        if ( is_singular() && function_exists( 'sharing_display' ) ) {
            remove_filter( 'the_content', 'sharing_display', 19 );
            remove_filter( 'the_excerpt', 'sharing_display', 19 );
        }
    }
    add_action( 'loop_start', 'remove_jetpack_sharing' );

    This code worked until I update the Jetpack to their lastest version today.
    I’ve also tried the codes suggested here: https://jetpack.com/2013/06/10/moving-sharing-icons/ – but without success.

    What more can I try to remove the sharing_display filters?

    Thanks!

    https://wordpress.org/plugins/jetpack/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor csonnek

    (@csonnek)

    Happiness Rocketeer 🚀

    Can you let me know what site you’re having this problem? Once I have that information, I’ll be better able to help.

    If you want it to remain private, you can also contact us via this contact form:
    http://jetpack.com/contact-support/

    Thanks!

    Thread Starter Allyson Souza

    (@allysonsouza)

    Hi csonnek,

    You could see the difference between the production (old jetpack) and staging (updated jetpack) here:

    Production: http://www.abelman.com.br/cursos/curso-esocial-sped-folha
    Staging: http://www.abelman.com.br/staging/cursos/curso-esocial-sped-folha

    Plugin Contributor csonnek

    (@csonnek)

    Happiness Rocketeer 🚀

    Thank you, that helps! In Jetpack 4.0, we’ve 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: GitHub

    Unfortunately, quite a few themes and other plugins were already doing that by themselves, so you will notice two rows of sharing buttons appearing on your product pages.

    The solution is to remove the extra buttons Jetpack has added, by adding the following to 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 should take care of it for you!

    Thread Starter Allyson Souza

    (@allysonsouza)

    Thank you csonnek, this worked perfectly!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Jetpack sharing buttons remove_filter don't working anymore’ is closed to new replies.