Support » Fixing WordPress » how to make CSS Random Background Image Rotation works
6 years, 6 months ago
i found this site CSS Random Background Image Rotation
like this site netdreams.co.uk
every page reload a new background comes out
so where to put @import & <style>
im not into css but i hope you guys make it easy for us 😉
5 years, 8 months ago
I believe WordPress 3.0 has new functionality to rotate the background using custom background, not tested it yet but the videos look promising.
This post may help, it is a tutorial for changing the background by time of day, this was for a question asked on this forum.
I extended it for season (month), in the season part I have a line of code to return a random background, you may be able to extend this.
It just uses the body class and a set of style elements, you just need to load the classes into an array generate a random seeded number and that is it.
If you have trouble working it out I could extend the tutorial to cover random backgrounds, but it would still require each background to have a style.