The very first thing you need to do is to login into your Gmail account associated with your Blogger account. Once you are successfully logged in, go to Blogger.com >> your site >> Templates >> Edit HTML >> and look for the <data:post.body/> tag. After finding the <data:post.body/> tag paste the following code either above or below it (depending upon your needs as mentioned below).
- For Below Posts: If you like to show the share button at the end of your posts, then paste the following code below <data:post.body/> tag.
- For Above Posts: However, if like to display the share button at the beginning of your posts then paste the following code above <data:post.body/> tag.
<b:if cond='data:blog.pageType == "item"'>
<div style='float:right;margin-left:10px;'> <script src='http://platform.linkedin.com/in.js' type='text/javascript'/><script data-counter='BUTTON-TYPE' expr:data-url='data:post.url' type='in/share'/>
</div>
</b:if>
Now it is up to you what kind of button design. There are several designs through which you can select the one which perfectly fits your website. Linkedin provides a couple of designs like Vertical, Horizontal or without counter buttons. Therefore, to customize your button type just replaces “BUTTON-TYPE” from your coding with any of the following depending on your needs.
- top for full tall button with counter
- right for small button with counter
- Remove data-counter for no counts
We hope this article has helped you in learning How to add Linkedin share button in blogger. This button can be handy for those who are more interested towards business or they want to have a corporate profile. Let us know what are your inputs about using a Linkedin Share button in your blogs? Does it really worth it? Lets have a meaningful conversation in comments below.
About the Editorial Team
The Editorial Team of MyBloggerLab consists of a group of Professional Blogger geeks Led by Syed Faizan Ali (Founder of MyBloggerLab).
Post a Comment
We’re eager to see your comment. However, Please Keep in mind that all comments are moderated manually by our human reviewers according to our comment policy, and all the links are nofollow. Using Keywords in the name field area is forbidden. Let’s enjoy a personal and evocative conversation.