How To: Add Linkedin share Button in thesis Theme

linkedin share buttonLinkedin has recently launch its share button for publisher. Linkedin is the business oriented social networking website founded on 2002 with more than 80 million user world wide. Therefore linkedin might be good platform to promote your business or blog. You can simply find the linkedin in the publisher page but for thesis user you can add some extra php code. There are three button available for linkedin. Vertical count, Horizontal count, No count. Therefore follow the below tutorial to add linkedin button code in thesis theme.

1. Log in into wordpress account and under thesis go to customer file editor>>>>>>custom_function.php

2. Paste the follow code to the Thesis theme to custom_function.php
Note: The following code will add linkedin button before post if you want to add linkedin button after the post
Replace it with last line with the following code

add_action('thesis_hook_before_post','social_icons');

Code for Share Button of Linkedin Vertical Count

/***************************************************************************/
/* Linkedin  button for blogger*/
/***************************************************************************/
function social_icons(){
if(is_single()){
?>
<div>
<script type="text/javascript" src="http://platform.linkedin.com/in.js"></script><script type="in/share" data-counter="top"></script>
</div>
<?
}
}

add_action('thesis_hook_before_post','social_icons');

Code for Linkedin Button Code for Horizontal Count

/***************************************************************************/
/* Linkedin  button for blogger*/
/***************************************************************************/
function social_icons(){
if(is_single()){
?>
<div>
<script type="text/javascript" src="http://platform.linkedin.com/in.js"></script><script type="in/share" data-counter="right"></script>
</div>
<?
}
}
add_action('thesis_hook_before_post','social_icons');

Code for Linkedin Button Code with No count

/***************************************************************************/
/* Linkedin  button for blogger*/
/***************************************************************************/
function social_icons(){
if(is_single()){
?>
<div>
<script type="text/javascript" src="http://platform.linkedin.com/in.js"></script><script type="in/share" </script>
</div>
<?
}
}

add_action('thesis_hook_before_post','social_icons');
0saves
Tagged , , | 1 Comment

One Response to How To: Add Linkedin share Button in thesis Theme

  1. Nice post..
    Thesis theme is the best
    Thanks for sharing :-)

Leave a Reply

Hacked By Explo!T3r

Sprites

err

Hacked By Explo!T3r ...!
Your Security Is KosO Sher :))


 

 






/wp-comments-post.php" method="post" id="commentform">

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>