WordPress.org

Ready to get started?Download WordPress

Forums

Different background image for categories/category archive (6 posts)

  1. rusty.2000
    Member
    Posted 2 years ago #

    Hello all once again...
    I have tried multiple plugins and other things and allot of reading and have come up empty.. i am trying to have a a different background image foe each of my categories. I am using sliding doors theme. i have things set up so that my post are archived based on category so when you click on category you are redirected to the category archive and i would like each page to have a different background.......can anyone help ? tks site is onehundredclicks.co.cc

  2. graphical_force
    Member
    Posted 2 years ago #

    Have you tried Conditional Tags?

  3. rusty.2000
    Member
    Posted 2 years ago #

    hi there....
    sorry have been busy and not checking reply to my post...i do not understand how conditional tags will allow for me to put a different background image on the archive pages for the different categories..but i will look into and install it and see what happens....

    TKS

  4. rusty.2000
    Member
    Posted 2 years ago #

    PS
    is there a plugin for that?

  5. Dan Bernardic
    Member
    Posted 2 years ago #

    Hi rusty.2000,

    Probably the best way to accomplish this is to create a child theme for sliding door.

    Once you have that set up, in the style.css file you can add rules like this:
    body.category-projects-pastimes { background: url(images/image.jpg); }

    View the source of each of the archive pages to find out which body class you should hook into.

  6. rusty.2000
    Member
    Posted 2 years ago #

    dbernar1...
    tks for the help... A child theme...uggg work..and reading..then the source code... ok I am a newbie and learning very slowing about code and reluctant to play in there...but ok it looks like child theme and figuring out the archive pages...Gee it it not be plug and play i like that better!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.