Forcing the sidebar to refresh on each 'static' page link click
-
Hi,
I hope someone can help me! I’ve nearly completed a new WP site for a client (https://www.spirittosound.com) and he’s requested a slightly unusual thing. He doesn’t want the regular sidebar with search and blogroll and what not – at the moment. But he does want an image that fills the sidebar to be randomly chosen from a folder of images each time a main nav bar link is clicked.
Everything I’ve read points to the fact that WP always refreshes the sidebar, but my site is clearly not doing this, as the sidebar only refreshes if you perform a refresh – it doesn’t do it when you use any of the links on the main nav bar.
I’m sure this is a very simple php code drop in, but I wouldn’t even know where to drop it in, let alone how to write it. I’ve also considered just removing the side bar, and adding the image to a div on every page, but I don’t want the hassle of sorting it out again when the client wants the side bar back in the future.
I hope I’ve made that clear enough?!
Cheers,
Dan
- The topic ‘Forcing the sidebar to refresh on each 'static' page link click’ is closed to new replies.