Detect if a Background Image is in use
-
I’m developing my own theme and I need to run an if conditional based on whether the background image is in use or if it’s just a regular background color. How would I go about this?
Basically in short, when the background image is in use it will be an ad, so I want my header pushed down to show what would effectively be a banner ad built into the background image. When no background image is defined, I want my header to be in its normal state. Basically the way cnn.com and imdb.com do their backgrounds (when they have them).
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Detect if a Background Image is in use’ is closed to new replies.