latest post as background image?
-
Hi!
I have a photography website (https://www.karlotta.com) powered entirely by WP and NextGen Gallery.
On the index page, I’d like to post a new photo every few days, with the date and a title. (there’s a dummy photo + text in there now if you want to see the desired end result!)
So this sounds pretty simple, except that because of the structure of my site, the image in question is actually the background of a div, not an img tag inside the post. It cannot be anything else than that for formatting reasons.
So I was wondering if there was a script I could use to define that background image – as a variable in my css, maybe?
My CSS is an external sheet, but I would be open to having that one element defined in the head (or body?) if that helps. I just can’t think of a good way to accomplish what I want.
Anybody’s got a thought on this little mystery?
Many thanks for your help!
- The topic ‘latest post as background image?’ is closed to new replies.