WordPress Tweaks & Tuts?

Subscribe to TheCreatology via RSS | Email

How to add Social Media Share Count Buttons in WordPress Blog ?

by Aky Joe

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.

social-share-count-button

Social Share Count Button for 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:

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)); ?>&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;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. 😉

Similar Topics: , ,

TheCreatology Support

Got a Query? We're ready, Just Say it!

If you have a doubt or a feedback, then get-in-touch with TheCreatology Support Team now.

Start a Hangout or Email Us

Are you looking for...

  • Logo Design
  • Web Development
  • Thesis Skin Design
  • Graphic Designing
  • Virtual Assistance
Hire Us!

11 Comments

{ read them below or add one }

Leigh Ann August 24, 2011 at 9:15 am

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!

Reply

GraceArreza Katre September 22, 2011 at 3:42 pm

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!!

Reply

Aky January 11, 2012 at 6:25 pm

Well, you can go ahead with sociable plugin for WordPres. Easiest so far! 😉

Reply

Godaddy January 28, 2012 at 9:23 pm

ı use addtihis dot com very useful and simple .Very thanks your information.

Reply

appsmenow February 2, 2012 at 3:46 pm

great post.
very useful for me.
thanks

Reply

baby games May 5, 2014 at 1:09 am

ı use addtihis

Reply

APK Games May 20, 2015 at 12:14 pm

thanks a lot man was digging through google and finally found it

Reply

Leave a Comment

Previous post:

Next post:

Contact Aky




Yes, I agree that all information above is valid.

Simple question, what's...