Change sidebar design on refresh?…
-
I’m building a custom theme, so my sidebar is custom HTML/CSS design utilizing the sidebar.php file. Been searching for a way to do this using php random and such, and WP plugins, but so far no one’s talked about just showing a differently designed same sidebar on refresh, at least that I’ve seen.
To be (I hope) clearer: theoretically, if I have sidebar1.php and sidebar2.php which have the same size and content, but the background colours are different so when you hit refresh on the page or a new page, one or the other will load randomly.
Is there a way to call one or the other sidebars randomly? Or, can one side bar load a random set of HTML tags from within the same php file, or an external HTML file?
It’s just a little design touch, not functionally different. Easy? Agonizingly complicated? Anyone?
- The topic ‘Change sidebar design on refresh?…’ is closed to new replies.