How To Add StumbleUpon Button To WordPress Website
March 19th, 2018 | by Ravi Chahar || 6 Comments |
StumbleUpon is a website where people stumble to find the quality content. Most of the websites have added the StumbleUpon button.
Do you know how to add StumbleUpon button to WordPress website without using any plugin? Each social networking platform provides the code to add the sharing button.
In this tutorial, you will learn about the method which will help you to generate and add the StumbleUpon button to your website.
Generate Code And Add StumbleUpon Button To WordPress Site.
Just like all the other social networking websites, you can add Stumbleupon button to your website. You just have to follow a few steps.
Step 1:- Visit the code generator page at StumbleUpon.
Step 2:- There will be many buttons from which, you can select any. I have selected the second button.
Step 3:- There will be a code in the box in front of the badges/buttons. Though all the instruction will be provided with the code but still, let me guide you.
Copy and paste the script code and place it anywhere on your website. make sure that it is in the body tag. So you can use a plugin like you do for Google Analytics or you can do it manually.
Step 4:- There will a StumbleUpon tag which would show the button on your website. Just copy and paste that code anywhere on your website.
If you want to show the button below the blog posts then you have to edit the single.php file.
Let me show you an example of the code to show the button.
The script code would be similar to the code shown below.
li.src = (‘http:’ == document.location.protocol ? ‘http:’ : ‘http:’) + ‘//platform.stumbleupon.com/1/widgets.js’;
var s = document.getElementsByTagName(‘script’); s.parentNode.insertBefore(li, s);
Unfortunately, there is not any option to edit the design of the button manually like Facebook and Twitter.
It Won’t Be So Hard To Add StumbleUpon Button To WordPress Website.
You can generate your own code according to the badge you want to show. StumbleUpon can drive traffic to your blog. There are millions of users stumbling each day.
If you’re not a StumbleUpon user then go for it and have an amazing badge for your website. For a WordPress website, you can have a better button.