Quantcast
Channel: WordPress.com Forums » Forum: Staff Answers - Recent Posts
Viewing all articles
Browse latest Browse all 23451

zandyring on "Can I use different backgrounds for category archive pages?"

$
0
0

Hey, I have great holiday news! I'd like to say it comes direct from my own brain, but a colleague clued me in. :) Here's what she says:

You CAN change the background of category pages!

Category pages get assigned a unique body class, which can then be
targeted via CSS.

For example, this page:
http://riverwayranchcamp.wordpress.com/category/pic-of-the-day/

.... includes the unique class

category-pic-of-the-day

.....as part of the body tag here:

<body class="archive category category-pic-of-the-day category-22003
logged-in admin-bar no-customize-support custom-background no-js
typekit-enabled debug-bar-maximized highlander-enabled
highlander-light custom-colors">

so it can be targeted in CSS with:

.category-pic-of-the-day {
// unique background stuff here
}

I hope that helps :)


Viewing all articles
Browse latest Browse all 23451

Trending Articles