# Move Jetpack Sharing Buttons Above the Content

> Shows Jetpack's sharing buttons at the top of posts instead of the bottom, and keeps the Like button at the bottom where readers expect it.

- Type: PHP
- Runs: Run everywhere
- Category: [Plugin Integrations](https://wpide.com/library/category/integrations/)
- Tags: jetpack, sharing, social
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/jetpack-sharing-above-content/

## Code

```php
add_action( 'loop_start', function () {
    if ( ! function_exists( 'sharing_display' ) ) {
        return;
    }

    remove_filter( 'the_content', 'sharing_display', 19 );
    remove_filter( 'the_excerpt', 'sharing_display', 19 );
} );

add_filter( 'the_content', function ( $content ) {
    if ( ! function_exists( 'sharing_display' ) || ! is_singular() || ! in_the_loop() || ! is_main_query() ) {
        return $content;
    }

    return sharing_display( '', false ) . $content;
}, 8 );
```

## Notes

Also removes the buttons from excerpts so they do not repeat on archive pages.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Move Jetpack Sharing Buttons Above the Content" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
