In WordPress you can redirecting WordPress users and viewers to a random post on a WordPress website. It can be done in many different ways. Luckly, in Blogger you can use some tricks to redirect blog visitors to random post. This trick allows you to create a link to "
yourblog.blogspot.com/?random" which will redirect someone to a random post on your blog without see the same post twice.
- Login to your Blogger account.
- Go to "Blogger Dashboard" > "Template" > "Edit HTML".
- Check the "Expand Widget Templates".
- In the code window, search for (Ctrl + F) </head> tag.
- Add below code just before </head> tag:
<script type='text/javascript' src='https://bloggerxtutorials.googlecode.com/files/bloglucky-min.js'></script>
- Then put the following link wherever you want:
<a href='#random' onclick='feelingLucky()' title='Random Post'>I'm Feeling Lucky</a>
- Save it.
0 comments :
Post a Comment