By default, Jetpack adds social media buttons only to the bottom of your post content. This could be a problem for the WordPress users, who want to display the social media buttons at the top of the post. Today we will discuss, how to add Jetpack social media buttons at the top of the post content.
Jetpack Plugin:
Jetpack is a free and multi-purpose plugin packed with great features that simplify WordPress sites by generating visitor stats, security services, speeding up images and much more by installing 24+ plugins in one click. It is one of the most popular plugins in WordPress plugin directory with more than 5 million + users.
Jetpack social sharing option lets you add sharing buttons to your blog posts which gives the ability to your readers to share the blog posts on numerous social media websites like Facebook, Twitter, LinkedIn, Google+, Tumblr, Skype, Pinterest, Reddit and much more.
How to configure sharing buttons in the Jetpack plugin?
Login to your WordPress dashboard, install and activate the Jetpack plugin. Check how to install WordPress plugins on your website??
In order to use Jetpack plugin, you must have wordpress.com account, if you don’t have, create one for free.
After installing the Jetpack plugin, navigate to Jetpack > Settings > Sharing.
Under sharing buttons option, activate “sharing buttons to your posts” option.
This will enable the sharing option in your WordPress website. Now go to settings in your WordPress dashboard and click on sharing option to configure your sharing buttons.
Under sharing buttons, drag and drop sharing buttons which you want to use in your site from available services to enabled services.
Now choose your button style by selecting an option from the drop-down list. You can choose any from available options ‘icon + text’, ‘icon only’, ‘Text only’ or ‘Official buttons’.
Give a heading to this buttons in sharing label option and select where you want to display the sharing buttons on your website and click on save changes.
Now this jetpack social sharing buttons will appear on the bottom of your posts and pages. By default, Jetpack adds social share buttons only to the bottom of your post content. Now we will check how to add jetpack social media buttons at the top of the post content.
How to Add Jetpack Social Media Buttons at the Top of the Post Content?
Login to your WordPress dashboard and go to Appearance > Editor.
Open your theme function.php file and paste the below code snippet.
//* add jetpack share buttons above post content function jetpack_share_buttons_above_content( $content = '' ) { if ( function_exists( 'sharing_display' ) ) { return sharing_display() . $content; } else { return $content; }} remove_filter( 'the_content', 'sharing_display', 25); remove_filter( 'the_excerpt', 'sharing_display', 25); add_filter( 'the_content', 'jetpack_share_buttons_above_content', 25); add_filter( 'the_excerpt', 'jetpack_share_buttons_above_content', 25);
That’s it Jetpack social sharing buttons will appear at the top and bottom of the post content on your WordPress website.
I hope this article helped you to add Social Media Buttons at the Top of the Post Content.
Please share this article with your friends on Facebook, Google + and Twitter.
Leave a Reply