How to Add Digg, Stumble, Twitter share Buttons on Your Wordpress Blog

How to Add Digg, Stumble, Twitter share Buttons on Your WordPress Blog  
how to add digg, stumble, twitter share buttons on your wordpress blog
How to Add Digg, Stumble, Twitter share Buttons on Your Wordpress Blog
I my previous post I had wrote about How to add New Digg Buttons on your WordPress blog without plugin. I got better responses from my users and few of them asked to tell about adding Digg, stumble, Twitter buttons on the homepage of the blog.

So, with this post I am going to share how to add a Digg share button, stumble upon, Twitter share buttons on the WordPress blog without using plugin. Really, using Plugins for these small tasks are not a good strategy and it may leads to slow down your blog than usual.


Here is the code you can use to add Digg, Stumble, Twitter share buttons on your WordPress blog:

How to Add Digg, Stumble, Twitter share Buttons on Your WordPress Blog

<script type="text/javascript">tweetmeme_source = 'iliketocollect'; tweetmeme_url = '<?php the_permalink() ?>'; </script> <script type="text/javascript" src="http://savedelete.com/wp-content/themes/SD/js/button.js"> </script>
 <a href="http://www.stumbleupon.com/submit?url='<?php the_permalink() ?>' &title='<?php the_title() ?>' target="> <img style="border: 0px none; background: none repeat scroll 0px 50% transparent; padding: 0px;" src="http://savedelete.com/wp-content/themes/SD/images/stumble.jpg" alt="" />
 <script type="text/javascript">
 digg_url = '<?php the_permalink() ?>';
digg_title = '<?php the_title();
 ?>'; digg_window = 'new';
 </script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript’’>
</script>

After adding this code in your WordPress blog you need to support this code to look good. For giving extra look you should add some of the CSS.
.left { float:left;}
.twitme { padding: 0 6px 3px 0;}
Note: The above code must be placed before the:
<?php the_excerpt (); ?> or <?php the_content (); ?>
After completing these all the steps the Digg, Stumble, Twitter Share button would successfully added on your homepage. If you have any doubt or want any suggestion regarding the process, please share that with us through comments box given below.

Share on Google Plus

About Sanu Singhania

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment

0 comments:

Post a Comment