
Today I'm gonna Show you the tutorial on how to add the top social media sharing buttons just below the post titles in Blogger blogs. Social Media sharing buttons are quite important for any blog because it can boost you traffic. The sharing widget includes Google + 1,Facebook like, Re-Tweet, Facebook share and Stumble Upon Buttons. If you need to, you can remove a button and add any other button to the widget. Both Wordpress and Blogger users can add this sharing widget. So lets add the precious buttons to your blogs.
How to Add the Social Media Sharing Buttons Below Titles?
- Go to Blogger >> Design >> Edit HTML.
- Back up your Template.
- Expand Widget Templates.
- Search for <data:post.body/>
- Place the following code just above it.
<!--GOOGLE+1-TWEET-FACEBOOK-STUMBLE-STARTS--> <b:if cond='data:blog.pageType == "item"'> <div style='padding:4px;'> <table border='0'> <tbody><tr> <td> <div style='margin-right:10px;'> <a class='twitter-share-button' data-count='horizontal' data-via='mybloggertips' href='http://twitter.com/share'>Tweet</a><script src='http://platform.twitter.com/widgets.js' type='text/javascript'/> </div> </td> <td> <div style='margin-right:10px;'> <iframe allowTransparency='true' expr:src='"http://www.facebook.com/plugins/like.php?href=" + data:post.url + "&layout=button_count&show_faces=false&width=100& action=like&font=arial&colorscheme=light"' frameborder='0' scrolling='no' style='border:none; overflow:hidden; margin-left:0px; width:100px; height:20px;'/> </div> </td> <td> <div style='margin-right:10px;'> <g:plusone expr:href='data:post.url' size='medium'/> </div> </td> <td><div style='margin-right:10px;'> <a expr:share_url='data:post.url' name='fb_share' rel='nofollow' type='button_count'/> <script src='http://static.ak.fbcdn.net/connect.php/js/FB.Share' type='text/javascript'/> </div> </td> <td> <div style='margin-right:10px;'> <script expr:src='"http://www.stumbleupon.com/hostedbadge.php?s=1&r=" + data:post.url'/> </div> </td> </tr> </tbody></table></div> </b:if> <!--GOOGLE+1-TWEET-FACEBOOK-STUMBLE-STOPS-->
5. Note: If you have already Added Google + button then skip this step. If not then Search for ]]></b:skin> and below it add the following code:
<script src='http://apis.google.com/js/plusone.js' type='text/javascript'> {lang: 'en-US'} </script>
That's all , You are done. :)
Peace and Happy Blogging!
0 comments: