1

The default for the theme I'm using is to have a white background for any post (the part with the text, not the background that forms the border around it) on my wordpress installation. Is there a way I can set the the background for all pages in one shot.

I've tried adding the following css:

p
{
    background: #91C3C1;
}

but it only changes the background color for the paragraphs.

What element should I be changing? (in this case I'm using the "Responsive" theme from CyberChimps)

3
  • It depends on the container for the post. What is the rendered markup? Add that code to your question please.
    – fuxia
    Commented Aug 9, 2013 at 3:31
  • Any suggestions on how to find the id/container type? What am I looking for in the source?
    – BIBD
    Commented Aug 9, 2013 at 4:30
  • In the rendered output, right click on the post content, choose inspect element from context menu, and look at the DOM in the debugger. You can go up in the element tree here until you find the post container.
    – fuxia
    Commented Aug 9, 2013 at 4:32

2 Answers 2

1

Set the background colour to the class ".post", that's the standard class for posts

.post { background: #91C3C1 !important;
1

The solution for me was to add the following

.grid
{
    background: #91C3C1;
}

.page
{
    background: #91C3C1;
}

although, the border around the posts are still the default color; but I'll start a new question for that.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.