Add Share Buttons in WordPress Facebook, Twitter Google +1, linkedin, Digg, Reddit, Stumbleupon with count box put there code below the post title or any where you want.Sharing help website to get more traffic and user for that or you can download WordPress SEO theme Abnomize.
Add into WordPress: To add this code in single post go to your edit theme now find and edit single.php here add below code after title of post or after content of post.
This code can be use in any type of website with small editing
[php]
<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="<?php if(is_home()){echo home_url();}else{the_permalink();} ?>" send="false" layout="box_count" width="450" show_faces="false" font=""></fb:like>
<!-- Place this tag in your head or just before your close body tag -->
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
<!-- Place this tag where you want the +1 button to render -->
<g:plusone size="tall"></g:plusone>
<su:badge layout="5"></su:badge>
<!-- Place this snippet wherever appropriate by wrock.org -->
<script type="text/javascript">
(function() {
var li = document.createElement('script'); li.type = 'text/javascript'; li.async = true;
li.src = ('https:' == document.location.protocol ? 'https:' : 'http:') + '//platform.stumbleupon.com/1/widgets.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(li, s);
})();
</script>
<a href="http://twitter.com/share" data-count="vertical" data-related="general_tips">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
<script type="text/javascript" src="http://platform.linkedin.com/in.js"></script><script type="in/share" data-counter="top"></script>
<script type="text/javascript">
(function() {
var s = document.createElement('SCRIPT'), s1 = document.getElementsByTagName('SCRIPT')[0];
s.type = 'text/javascript';
s.async = true;
s.src = 'http://widgets.digg.com/buttons.js';
s1.parentNode.insertBefore(s, s1);
})();
</script>
<a></a>
<!-- Place this tag where you want the su badge to render -->
<script type="text/javascript">reddit_newwindow='1'</script>
<script type="text/javascript" src="http://www.reddit.com/static/button/button2.js"></script>
[/php]
If you need help then post comments.
0 comments:
Post a Comment