Viewing 3 replies - 1 through 3 (of 3 total)
  • Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    Try using the updated code in this post (the jptweak_remove_share function is now hooked earlier):
    http://jetpack.me/2013/06/10/moving-sharing-icons/

    Thread Starter Gioxx

    (@gioxx)

    If I modify the first “original” code I obtain a ” Fatal error: Class ‘Jetpack_Likes’ not found in … etc. .

    I replaced the function’s code with this:

    function jptweak_remove_share() {
        remove_filter( 'the_content', 'sharing_display',19 );
        remove_filter( 'the_excerpt', 'sharing_display',19 );
        if ( class_exists( 'Jetpack_Likes' ) ) {
            remove_filter( 'the_content', array( Jetpack_Likes::init(), 'post_likes' ), 30, 1 );
        }
    }
    add_action( 'loop_start', 'jptweak_remove_share' );

    and now it works. Can I reccomend You to modify the code on Your article?

    Thanks for Your support!

    Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    Can I reccomend You to modify the code on Your article?

    I’ve just edited the post. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Jetpack] Twice sharing buttons’ is closed to new replies.