(+84) 463.28.7979

How to Add Official LinkedIn Share Button in WordPress


Just like Twitter Retweet Button, Facebook Like Button, and Facebook Share Button, Business-oriented social network LinkedIn has launched their own share button, which gives publishers a way to spread their content on LinkedIn and enables users to easily share content with their LinkedIn network. In this article, we will show you how you can quickly add the LinkedIn Share Button in WordPress.

LinkedIn Share Button

To add the Official Linkedin Share button simply open up a theme file of your choice (single.php etc) and add the following code within the Post Loop:

Vertical Count

Vertical count display will show the count on top of the button as displayed in the preview image.

<script type="text/javascript" src="http://platform.linkedin.com/in.js"></script><script type="in/share" data-url="<?php the_permalink(); ?>" data-counter="top"></script>

Horizontal Count

Horizontal count will display the count to the right of the button, which can be seen in the image preview above.

<script type="text/javascript" src="http://platform.linkedin.com/in.js"></script><script type="in/share" data-url="<?php the_permalink(); ?>" data-counter="right"></script>

No Count

<script type="text/javascript" src="http://platform.linkedin.com/in.js"></script><script type="in/share" data-url="<?php the_permalink(); ?>"></script>

Because this was announced recently, there are no plugins for this yet. But we are certain that developers will be releasing them soon. If you are a developer who have a plugin in works, then please keep us updated, so we can add it in this post.

Additional Resources

Official Page for Publishers

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>