WordPress.org

Ready to get started?Download WordPress

Forums

Conditional tag in css for div background image (1 post)

  1. caraherch
    Member
    Posted 1 year ago #

    Hi all,
    For the meta-date categories on my blog I have that part of the loop in its own div with a background image. I'd like to have the background image change based on the category of that post. I believe I can do this in css with a set of conditional tags (something along the lines of if category () echo red.png)
    Any ideas of where to start with this or if it is possible?
    The site is blog.printstitchandpaste.com and the image to be changed is the little flag/banner behind the category name.
    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic