If you are looking forward to boost blog traffic then make sure that you have Social media buttons on your blog. When we talk about the Web2.0, social media buttons have been replaced by the new share count buttons trending Facebook Like Button, Tweetmeme, Twitter Share button and etcetera. In this article, we will learn to add different social media button in WordPress.
Different Social Share Buttons
As mentioned above, social share buttons on website is like a car with wheels, and you cannot move ahead without them. I have already covered some Social media buttons in my previous articles, whereas if you have missed any then you can find them below:
- Retweet Button
- Facebook Like Button
- Twitter Official Share Button
- LinkedIn Share Button
- Google +1 Share Button
Share Button Codes for WordPress
For ease of access I have complied all social share button codes in this article so that you can simple add share count button in WordPress Website.
Make sure you take full backup of single.php file using FTP before modifying it.
Retweet Button
<script type="text/javascript"> tweetmeme_source = 'thecreatology'; </script> <script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script>
Above code is for the Retweet Button, make sure to change the tweetmeme_source @thecreatology with your twitter handle. To see more options you may refer the original post How to Add ReTweet Button in WordPress Blog.
Official Twitter Button
<a href="http://twitter.com/share" data-url="<?php the_permalink(); ?>" data-count="vertical" data-via="thecreatology" data-related="Aky Joe:He is Cool!">Tweet</a> <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
Above code is for the Official Twitter Button, make sure to change the data-via @thecreatology & data-related with your twitter handle. To see more options you may refer the original post How to Add Official Twitter Button in WordPress Blog.
Facebook Like Button
<iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo urlencode(get_permalink($post->ID)); ?>&layout=standard&show_faces=false&width=450&action=like&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:60px;"></iframe>
Above code will add Facebook Like Button, make sure that you add the code in WordPress Post Loop. There are also different layouts to configure Facebook Like Button, which you can find in the original post How to Add facebook Like button in Website.
LinkedIn Share Button
<script type="text/javascript" src="http://platform.linkedin.com/in.js"></script> <script type="in/share" data-url="<?php the_permalink(); ?>" data-counter="right"></script>
Above code will add LinkedIn Button, make sure that you add the code in WordPress Post Loop. There are also different layouts to configure Linked Button, which you can find in the original post How to Add LinkedIn Share Button in WordPress Blog.
Google Like +1 Button
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script> <g:plusone></g:plusone>
Above code will add Google Like Button, make sure that you add the code in WordPress Post Loop. Google Plugin button can be configured in three ways, for which you can refer to the original post How to Add Google +1 Like Button in WordPress Blog.
Is that it ?
Well yes, these were some popular social count buttons which I shared above, for a WordPress blog. If you think I missed any other share button, then you can share with us by posting a comment below, respecting the fact that Sharing is Caring. 😉
I dont’ have these particular buttons installed, but your code snippets really helped me adjust my PHP so I could add my twitter handle to the plugin I did install. I feel like such a badass! Thank you!
Is there like an easy way to setup these plugins? People that are less techy can’t understand much of like on PHP? Thanks! Reply much appreciated!!
Well, you can go ahead with sociable plugin for WordPres. Easiest so far! 😉
ı use addtihis dot com very useful and simple .Very thanks your information.
great post.
very useful for me.
thanks
ı use addtihis
thanks a lot man was digging through google and finally found it