Hey Friends you have seen social media share widget I have been using just below the posts title of my post. So now it's time for you to use this widget in your blog's posts. Well I have not done so much of customization here. I just had used very simple CSS properties to give it a minimal and elegant look. Let's proceed to our tutorial now
Or
<div class='post-footer'>
Step#1
- Open Blogger Dashboard → Template → Html Editor
- Search for below code in your template.
Html
<div class='entry-header'>Or
<div class='post-footer'>
- Now add below given code just after the above code.
Html
<b:if cond='data:blog.pageType == "item"'><div id='share-this'> <h3 class='share_it'>Socialize Us</h3> <div class='stumble-button' style='float:left;padding:3px 0% 5px 0;margin:0 2% 0 0;'> <su:badge layout='1'/></div> <div class='fb_button' style='float:left;padding:3px 2% 5px 0;'> <fb:like font='' href='' layout='button_count' send='false' show_faces='false'/></div> <div class='gplus_share' style='float:left;padding: 3px 1.5% 5px 0;margin: 0 0% 0 0%;'> <span class='g-plus' data-action='share' data-annotation='bubble'/> </div> <div class='gplus_this' style='float:left;padding:3px 5px 5px 0;width:13%'> <div class='g-plusone' data-size='medium'/> </div> <div class='twit_button' style='float:left;padding:3px 0% 0px 0;width:15.5%'> <a class='twitter-share-button' data-count='horizontal' data-related='' data-via='trackmyblog' expr:data-text='data:post.title' expr:data-url='data:post.url' href='http://twitter.com/share'>Tweet</a> </div> </div> </b:if>
- Now search for </head> and add below code just before it.
Javascript
<script src='http://connect.facebook.net/en_US/all.js#xfbml=1'/>- After you have done by adding script code add the following CSS code in your templates skin. i.e. before ]]></b:skin>
0 comments:
Post a Comment