/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function share_please($content){ if(!is_feed() && !is_home()) { $content .= '<div class="share-this"> <a href="<a href="http://twitter.com/share"" rel="nofollow">http://twitter.com/share"</a>; class="twitter-share-button" data-count="horizontal">Tweet</a> <script type="text/javascript" src="<a href="http://platform.twitter.com/widgets.js%22%3E%3C/script>" rel="nofollow">http://platform.twitter.com/widgets.js"></script></a>; <div class="facebook-share-button"> <iframe src="<a href="http://www.facebook.com/" rel="nofollow">http://www.facebook.com/</a><a title="plugins" href="http://wptricks.net/category/plugins/">plugins</a>/like.php?href='. .'&layout=button_count&show_faces=false&width=200&action=like&colorscheme=light&height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:200px; height:21px;" allowTransparency="true"></iframe> </div> </div>'; } return $content; } add_action('the_content', 'share_please');