perchingbird
MemberForum Replies Created
-
…
I must have been working on it too long, because I swore I tried that code and it didn’t work. Maybe, uh, my cache didn’t refresh properly.
That must have been it.
>.>
It works now. On to customize all the things!
Okay, so now I’m having a CSS conflict, and I’m not sure what’s wrong with the cascade. Thanks to Firebug I can see that the code is correct for getting the post content background color to change, it’s just over-writing the page-specific color. Hmm.
So I have this:
.post{
background:#f9f1d1;
border-top-color:#f9f1d1;
border-bottom-color:#f9f1d1;
}… to make the post content an off-white-ish color. But, for 3 pages I want the background to be white. So, I coded this further down in the CSS:
.post.blog, .post.page-id-13, .post.page-id-16{
background-color: #fff;
border-top-color: #fff;
border-bottom-color: #fff;
}But when I look at the pages, they show the off-white color. When I inspect with Firebug, it shows the .post color #ffffff with a strikethrough, and the off-white whole, which means for some reason it is the white is not being read as the primary color.
Thoughts on this error? What did I do incorrectly?
I’ll be changing all the blues (links, sidebars, etc) to a green/off-white scheme eventually, which means that I’ll have to custom code these same three pages to remain blue and white, so I’m guessing whatever my mistake is will repeat itself as I go through this process. 🙁
I’ve installed FIrefox and FIrebug (which is amazing, it shames Chrome’s inspect element features), and it appears that the code I need is actually this:
body.page-id-112 {
background-color: #FFFFFF;
}I moved all my custom CSS to my child theme, and cleared the background option in the WPAdmin that could have been overriding the child CSS. And then I found the period. See, it’s body, not .body. ><
So now I need to either constantly add new pages to the custom list, or code Lair, Blarg, and Rogues Gallery as the three directly applied style and use OTHERREALM as the main style that all pages have on creation. This is probably the most efficient method, and gives more control to the site owner (they won’t have to ask me to go fix any code when they want to add a page, after all).
And for posterity, for those that might be trying to code your blog page with a static front page, the ID is actually… blog… not page-id-somenumber. My Blarg page-id is 40, but coding for that does nothing to the actual page, since blog overrides it.
Yay Cascades!
So, uh, thanks for reading? Comments on how to improve efficiency would still be fantastic. 😀
Viewing 3 posts - 1 through 3 (of 3 total)
