The importance of random post in our blog is that it sells our old posts and keeps our archives active since many of our articles are useful to others. Lately I posted about random post and it is vertical in arrangement, now it is going to be horizontal,
Features for this widget
- Easy to install.
- Horizontal appearance that looks like a feature post slider
- Easy to customize
- Thumbnail ready
- Doesn’t affect loading speed
How To Add Horizontal Random Post
- Go to blogger > Open layout tab
- Now Add A new HTML/JavaScript widget
- Give any title you want [ eg: Being Viewed, Recently Viewed, Now Viewing etc. Its up to you. ].
- Now paste the code given below :
Customize
If you want to change the width and height of the space occupied just change:
random-posts li{width:100px;height:190px;margin
To change the number of posts just replace:
var rdp_numposts = 5;
To change the image sizes change
#random-posts li img{width:100px;height:70px}
The snippet is set to zero (0) if you want to set it change
var rdp_snippet_length = 0;
If you have questions feel free to comment
Enjoy