CSS change based on the_time()?
I have been looking for a simple way to change either an entire CSS file, or a piece of the CSS based on the time.
Looking at 1976 design’s example of attaching the header image to the weather results is fascinating, but really way overboard.
I’d just like to determine the syntax for calling style sheet # 1 between 6am and 7pm
and style sheet #2 between 7pm and 5:59am
There was once a simple solution here in the archives of a great example someone put together for doing exactly this, but either I can’t find it, or it got all cleaned up and is gone.
Does anyone know how to exploit a conditional for the_time() ?
- The topic ‘CSS change based on the_time()?’ is closed to new replies.