Return to Snippet

Revision: 46096
at May 13, 2011 00:19 by richerimage


Updated Code
function social_share_buttons() {

?>
	<div class="share-buttons">
	<ul>
		<li class="email-share"><a class="email-share" href="mailto:?subject=Check this out&BODY=I found this article interesting and thought of sharing it with you. Check it out: <?php the_permalink(); ?>" target="_blank"></a></li>
	    <li class="facebook-share"><a name="fb_share"></a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script></li>
	   	<li class="linkedin-share"><script type="text/javascript" src="http://platform.linkedin.com/in.js"></script><script type="in/share" data-counter="right"></script></li>
	    <li class="twitter-share"><a href="http://twitter.com/share" class="twitter-share-button" data-url="<?php the_permalink() ?>" data-text="<?php the_title(); ?>" data-count="horizontal" data-via="YOUR_TWITTER_USERNAME">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></li>
	</ul>
	</div>
    <div class="clear_b" style="line-height:0;">&nbsp;</div>
<?php
}

add_action('thesis_hook_after_headline', 'social_share_buttons');

Revision: 46095
at May 12, 2011 23:55 by richerimage


Updated Code
function social_share_buttons() {

?>
	<div class="share-buttons">
	<ul>
		<li class="email-share"><a class="email-share" href="mailto:?subject=Check this out&BODY=I found this article interesting and thought of sharing it with you. Check it out: <?php the_permalink(); ?>" target="_blank"></a></li>
	    <li class="facebook-share"><a name="fb_share"></a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script></li>
	   	<li class="linkedin-share"><script type="text/javascript" src="http://platform.linkedin.com/in.js"></script><script type="in/share" data-counter="right"></script></li>
	    <li class="twitter-share"><a href="http://twitter.com/share" class="twitter-share-button" data-url="<?php the_permalink() ?>" data-text="<?php the_title(); ?>" data-count="horizontal" data-via="Richer_Image">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></li>
	</ul>
	</div>
    <div class="clear_b" style="line-height:0;">&nbsp;</div>
<?php
}

add_action('thesis_hook_after_headline', 'social_share_buttons');

Revision: 46094
at May 12, 2011 23:54 by richerimage


Initial Code
function social_share_title() {

?>
	<div class="share-buttons">
	<ul>
		<li class="email-share"><a class="email-share" href="mailto:?subject=Check this out&BODY=I found this article interesting and thought of sharing it with you. Check it out: <?php the_permalink(); ?>" target="_blank"></a></li>
	    <li class="facebook-share"><a name="fb_share"></a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script></li>
	   	<li class="linkedin-share"><script type="text/javascript" src="http://platform.linkedin.com/in.js"></script><script type="in/share" data-counter="right"></script></li>
	    <li class="twitter-share"><a href="http://twitter.com/share" class="twitter-share-button" data-url="<?php the_permalink() ?>" data-text="<?php the_title(); ?>" data-count="horizontal" data-via="Richer_Image">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></li>
	</ul>
	</div>
    <div class="clear_b" style="line-height:0;">&nbsp;</div>
<?php
}

add_action('thesis_hook_after_headline', 'social_share_title');

Initial URL
http://richerimage.co.uk

Initial Description

                                

Initial Title
Add Social Share Buttons into Thesis

Initial Tags

                                

Initial Language
PHP