After so much request that how we have created above social share icons that appears on the top of each post, we are now writing this post on how to create social share buttons that appears on the top of each post. For the demo of his social widget you can just look above and below the title and you can also check and click on it how it works?
STEP 1
- Log In to your blogger account go to the site dashboard.
- Now Go to Template >> Edit HTML
- See below picture for more demonstration.
STEP 2
- Now find </head>.
- Copy below code<b:if cond='data:blog.pageType == "item"'><style type='text/css'>#AMGP {float: left;border-top: 1px solid #eaeaea;border-bottom: 1px solid #eaeaea;width: 610px;margin-bottom: 20px;margin-left: -10px;margin-top: 10px;}.headingsharer h5 {float: left;padding-right: 20px;padding-top: 18px;text-transform: uppercase;font-weight: bold;margin: 0px;padding-left: 10px;}.tweeetero, .fbwolo, .g-plusones, .fbshare {float: left;border-left: 1px solid #eaeaea;padding-left: 18px;padding-top: 15px;padding-bottom: 10px;}.g-plusones {margin-left: 20px;}</style></b:if>
- Paste this code above </head>
- See below picture for more demonstration.
STEP 3
Now this is the most crucial step so follow this carefully.
- Now find <data:post.body/>.
- Copy below code<b:if cond='data:blog.pageType == "item"'>
<div id='AMGP'>
<div class='headingsharer'>
<h5>Social</h5>
</div>
<div class='tweeetero'>
<a class='twitter-share-button' data-count='horizontal' data-via='guide_pedia' href='http://twitter.com/share'>Tweet</a><script src='https://platform.twitter.com/widgets.js' type='text/javascript'/>
</div>
<div class='fbwolo'>
<iframe allowtransparency='true' expr:src='"//www.facebook.com/plugins/like.php?href=" + data:post.url + "&send=false&layout=button_count&width=80&show_faces=false&action=like&colorscheme=light&font&height=21"' frameborder='0' scrolling='no' style='border:none; overflow:hidden; width:80px; height:21px;'/>
</div>
<div class='g-plusones'>
<div class='g-plusone' data-size='medium' expr:data-href='data:post.url'/>
</div>
<div class='fbshare'>
<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>
</div>
</b:if> - And Paste it above <data:post.body/>.
- Change guide_pedia with your twitter User name.
- See below picture for more demonstration.
Now the most problem we face while setting up this widget is <data:post.body/> we find this code three times or sometimes four to five times. So most easy method is to copy above code and paste one by one above on all <data:post.body/> this code you find.
If you still face any problem while setting up this social share widget you can comment below.
If you still face any problem while setting up this social share widget you can comment below.
Guidepedia has been producing really helpful tutorials and shares on the internet best .. how i wish i could contribute...
ReplyDeleteyou are welcome to contribute on GuidePedia
Deletemasala v.13 please , waiting from so many day .. no so many months
ReplyDelete