A worthy way to keep your visitors busy, and to allow them to spend more time on your website is to use “Random Post” button. Recently, one of our visitors asked us How to Add a Random Post button in Blogger. This button can be placed anywhere in your website, providing your visitors the flexibility that when clicked it will take the visitors to a complete random post. In other words, It will display random posts, every time the button is clicked. This is actually easy to achieve, so in this article we will show you How to Add a Random Post button in Blogger.
Before you start check out the live demo of this "Random Post" widget. You can play with it, and it will take you to the random post on each hit.
Before you start check out the live demo of this "Random Post" widget. You can play with it, and it will take you to the random post on each hit.
The first thing you need to do is to get yourself login into your Blogger account and go to Template >> Edit HTML section. Now within the template coding, search for the ending</body> tag and just above it paste the following piece of JavaScript coding.
Now to create a random post link and put it in a desired location of your website paste the following code anywhere you like. For example, in your navigation and it would automatically turn into a random post button. Once everything is done, save your template by pressing “Save Template” button.
Congratulations: You Successfully added a Random post button in your blogger blog. Now go and check your site to see if everything is working just according to the plans. If you have followed the instructions properly, we are sure you will not face any errors.
How to Style the Random Post button?
I am sure, people would like to make their random post button stand out (fancy from others). You can use the following piece of CSS code to customize or stylize your button. You can make it look entirely different and can also use the same CSS coding as we have provided below (Remember: you have to paste the following code just above the ]]></b:skin> tag present in your template coding).We hope this tutorial may have helped you in learning how to add random post button in blogger. How many of you are already using this button? What are its benefits and how much conversion it is bringing to your site. We would love to hear your reviews and inputs on this topic, feel free to leave you precious comments below
Autor : Mian Fx
0 comments:
Post a Comment