The motive of all three popular buttons is to share our idea with a community, people and friends on twitter, facebook and other social networking sites. These buttons show a neat count of the number of times your blog post has been shared.
Why the available Plugins shouldn’t be used ?
- Plugins have a bunch of codes and images, which inturn increases loading time of your site.
- It takes some extra space on your server.
- All plugins are based or we can say designed on I Frame. This I frame results into error when tested on W3C validator.
- The customization of the share buttons is impossible with plugins.
How to use share scripts?
Be sure to place the following code in your template page (within index.php, single.php, and /or page.php) or as per your requirement.
1) For Retweet button:
Go to home.php or index.php place the code before or after : <?php the_content() ?>
tweetmeme_source = ‘<the name what you want to display before retweet post>’;
tweetmeme_style = ‘<size style>’;
tweetmeme_url = ‘<the post permalink>”;
For customization of the retweet button use the following scripts:
Changing the URL Shortener used
We have also added the ability to use a URL shortener of your choice instead of our default one.
If you would like to do this then you need to include the “tweetmeme_service” parameter as shown below:
tweetmeme_service = ‘bit.ly’;
2) For facebook share count buttons:
Again go to home.php or index.php, place the code before or after <?php the_content() ?>
<a name=”fb_share” type=”button_count” share_url=”<pots permalink>”</a>
The above script will render a normal share count button within a post.
You can also try this,
As for example
share_url= <?php the_permalink() ?>
Now its depends up to you that where you want to place the buttons. For doing this
Just put all the code within a <div> </div> and apply some CSS according to its placement.
3: ) How to use Google buzz
Go to home.php or index.php, place the code before or after <?php the_content() ?>
<a href=”http://www.google.com/reader/link?url=<post permalink>&title=<?php the_title(); ?>&srcURL=<?php bloginfo(‘url’); ?>” target=”_blank” rel=”nofollow external”>
<img alt=’Buzz It’ src=’http://i46.tinypic.com/ouprt1.jpg’/>
The following code will display the compact size of google buzz button.
The only thing is that make sure that URL have your post permalink.
As For Example: –
url=<?php the_permalink() ?>
You can change the default image according to your requirement, For high Resoultion Google Buzz Icons click here.
This is my first post, thanks for reading. Suggestions and feedback’s are most welcome.