- This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
Viewing 7 posts - 1 through 7 (of 7 total)
- The forum ‘Back End’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Ok so I’ve got this bit of code in my header.php file:
Now on my home page, WP adds a class called "home" to my body tag, which i style like so:
What I’d now like to do is show two different body backgrounds at different times in the day. So between the hours of 6am and 5pm I’d like the body background to be (morning.jpg) and between 6pm and 5am I’d like to to display a different body background image (night.jpg).
How would I go about doing something like this?
Thanks in advance!
You could do something like this:
Where would I place that in my code?
That would be in your <head> section.
No luck. I’m not having any background image show at all. Any ideas?
Solved! Cheers TheDoc, and thanks for your patience.
No worries – glad you got it sorted!