Support » Plugin: Jetpack by » Share buttons position – Above other plugins

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Author Jeremy Herve


    Jetpack Mechanic πŸš€

    You can make some changes to your theme to change the placement of the sharing buttons.

    You can find detailed instructions here:

    I’m afraid I’ve read the ‘instructions’ in the link above four times, but I still don’t understand what I’m supposed to do. I find it most unclear.

    Can anyone translate those instructions into understandable English?

    Plugin Author Jeremy Herve


    Jetpack Mechanic πŸš€

    Start by adding the following code to your theme’s functions.php file:

    function jptweak_remove_share() {
    	remove_filter( 'the_content', 'sharing_display',19 );
    	remove_filter( 'the_excerpt', 'sharing_display',19 );
    add_action( 'loop_end', 'jptweak_remove_share' );

    Then, locate the exact place where you’d like your sharing buttons to appear in your template files, and add the following code:
    <?php echo sharing_display(); ?>

    Thanks, Jeremy.

    To avoid having too many elements below each post, I’ve decided to go for a sharing plugin that puts the buttons on the side, so I won’t be needing those fixes.

    wooow Jeremy you’re awesome bro, thanks for this!

    Exactly the answer I was looking for. Great support Jeremy!

    Thanks! This was exactly the fix I needed. Does anyone know of a similar functions.php fix for the new Jetpack Likes?

    Very useful information.
    Great support!

    jeremy aftern some months i’m still not able to make this works. Your function tweak doesn’t hide the original sharedaddy share button. At the end i ve always two sharing areas. The first is the original that i want to move under the footer of the content (and above the yarpp), and the other is the correct share area above yarpp and under the footer content.

    you made also a plugin in another post that you asked me to try, but nothing. Now i’m learning a little better CSS and maybe with your help we can find a more drastic solution.

    I was just wondering if i can call the class of the correct share buttons with another name so when i delete the original one, it doesn’t delete also the correct one..

    i m always on a child theme of 20 12, i think my templates haven’t any complication which could avoid your solution from working great as the rest of your great plugin..

    ok, so i made it. But, i hope that i didn’t destroy something. Anyway it seems working good.

    i just added

    function jptweak_remove_share() {
    	remove_filter( 'the_content', 'sharing_display',19 );
    	remove_filter( 'the_excerpt', 'sharing_display',19 );
    add_action( 'loop_end', 'jptweak_remove_share' );

    at the bottom of the sharing-service.php file removing:

    add_filter( 'the_content', 'sharing_display', 19 );
    add_filter( 'the_excerpt', 'sharing_display', 19 );

    it’s possible that in the future it will cause me problems?

    Plugin Author Jeremy Herve


    Jetpack Mechanic πŸš€

    @ilmattiapascal That will work, but your changes will be deleted next time you update the Jetpack plugin.

    My function should work as is, if you paste it to your theme’s functions.php file. If it doesn’t work, I would need to know your site URL to investigate further.


    Thanx Jeremy, it works for me too.

    Could be cool to have a checkbox option in the admin to insert buttons manually or thru a path πŸ™‚

    Jetpack 2.5 seems to have broken this (for me at least).

    I have the jptweak function in functions.php, but as of the plugin upgrade only removing or commenting out the add_filter in sharing-service.php removes the default placement.

    Any thoughts?


    Maybe this helps:

    // Remove Jetpack CSS styles
    function remove_jetpack_styles(){
    	//wp_deregister_style('AtD_style'); # After the Deadline
    	//wp_deregister_style('jetpack-carousel'); # Carousel
    	//wp_deregister_style('grunion.css'); # Grunion contact form
    	//wp_deregister_style('the-neverending-homepage'); # Infinite Scroll
    	//wp_deregister_style('infinity-twentyten'); # Infinite Scroll - Twentyten Theme
    	//wp_deregister_style('infinity-twentyeleven'); # Infinite Scroll - Twentyeleven Theme
    	//wp_deregister_style('infinity-twentytwelve'); # Infinite Scroll - Twentytwelve Theme
    	//wp_deregister_style('noticons'); # Notes
    	//wp_deregister_style('post-by-email'); # Post by Email
    	//wp_deregister_style('publicize'); # Publicize
    	wp_deregister_style('sharedaddy'); # Sharedaddy
    	wp_deregister_style('sharing'); # Sharedaddy Sharing
    	//wp_deregister_style('stats_reports_css'); # Stats
    	//wp_deregister_style('jetpack-widgets'); # Widgets
    add_action('wp_print_styles', 'remove_jetpack_styles');

    With this you can remove the css sharedaddy sharebuttons.

    What I canΒ΄t find yet is a way to change the markup but using css ise very easy.

    cyphog same problem here. I have removed lines 607 & 608 in sharing-service.php (and I’m waiting for a new versione of Jetpack)

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Share buttons position – Above other plugins’ is closed to new replies.