Showing posts with label Wordpress Tips. Show all posts
Showing posts with label Wordpress Tips. Show all posts

0 Simple way to add social share button to your wordpress website

Do you want add social button to your wordpress website below the title without a heavy plugin.
Now you can add this code to your single.php in your theme below the title tag.


<!-- Begin Social Code by StartNewWeb.com-->
<!-- Begin Code Google +1 -->
<div class="socialtopcontent">
<div class="g-plusone" data-size="medium"></div>
<div class="fb-like" data-href="http://chidandulich.com" data-send="true" data-layout="button_count" data-width="120" data-show-faces="false"></div>
<div class="t-twitter"><a rel="nofollow" href="https://twitter.com/share" class="twitter-share-button" data-via="chidandulich" data-related="chidandulich">Tweet</a></div>
</div>
<div class="clear-social"></div>
<script type="text/javascript">
 (function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
 })();
</script>
<!-- End Code Google +1 -->
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=170464543099578";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
<!-- End Social Code -->
 

The simple way to start new website Copyright © 2013 - |- Blog created by StartNewWeb - |- Powered by Back VietNam