Random page link
-
Does anyone know of a way to add a link that redirects to a random page within a blog (i.e. like Wikipedia’s ‘Random page’ link)?
I’m using the DePo Masthead theme on WordPress.com and it would be great to have a feature along these lines as part of the navigation options on my site.
I’m fairly new to WordPress, but computer savvy, so I don’t mind doing a bit of technical hackery.
Thanks in advance,
Keith.The blog I need help with is: (visible only to logged in users)
-
Keith,
Use a text widget and copy this code:
<a title="Click here for random post" href="http://YOUR-BLOG-NAME.wordpress.com/?random" target="_blank">Click here for random post</a> -
-
-
That gives a random post (which I’ve had on my site for years, BTW – with image, no less :) ) but not a random page. I think, though, that the OP was really looking for a random post, anyway.
-
I’m using Monotone as I have a photoblog so it downs’t allow widgets. any way around this?
Or are there any other good photo themes?Cheers,
pa. -
dinneenp
Unless you want to learn CSS and modify another theme, Panos’ suggestion is about as good as it gets:
https://en.forums.wordpress.com/topic/do-i-have-to-buy-custom-css-upgrade-to-add-random-link-in-navigation?replies=4#post-315063 -
-
Brilliant, thanks!
It’s a pity more themes don’t offer this as an option since I there doesn’t seem to be any other way of adding such a link to the navigation section at the top of my site. I guess I’ll just have to put it in my blogroll, about section or as a static text widget. Unless there’s some way of adding extra links via CSS?
- The topic ‘Random page link’ is closed to new replies.