Saturday, February 26, 2011

How to Add linkedin share button to Blogger

1. Log it to your blogger and go to Design >> Edit HTML

2.Make sure you put check mark to “Expand Widget Templates

3.Find this tag by using Ctrl+F <data:post.body/>

4.Paste below one code(as your like) ,before <data:post.body/>

Horizontal Count Button
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<div style='float:right;margin-left:10px;'>
<script
 type="text/javascript" 
src="http://platform.linkedin.com/in.js"></script><script 
type="in/share" data-counter="right"></script>
</div></b:if>

Vertical Count Button
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<div style='float:right;margin-left:10px;'>
<script
 type="text/javascript" 
src="http://platform.linkedin.com/in.js"></script><script 
type="in/share" data-counter="top"></script>
</div></b:if>

No Count Button
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<div style='float:right;margin-left:10px;'>
<script
 type="text/javascript" 
src="http://platform.linkedin.com/in.js"></script><script 
type="in/share"></script>
</div></b:if>

5. Now click preview and click save template . you are done.

0 comments:

Post a Comment