Problem with CSS triggering off of body_class tags?
-
I’ve got a “Bare Page” template added to the Twenty Eleven theme. To get a different style I’m using “My Custom CSS” plug-in (which Rocks) to do page-specific CSS, based on the class .page-template-bare-page-php which I get from body_class().
These rules work fine:
.page-template-bare-page-php .entry-header {
display: none;
}
.page-template-bare-page-php .entry-content {
width: 100%;
}
.page-template-bare-page-php .entry-content {
padding: 0;
}But…
This one doesn’t work with the .page-template-bare-page-php in it. If I take it out, it does./* Doesn’t work */
.page-template-bare-page-php .singular.page .hentry {
padding: 0;
}/* Works */
.singular.page .hentry {
padding: 0;
}I’d appreciate a pointer to the CSS selector subtlety I’m missing.
Thanks.
- The topic ‘Problem with CSS triggering off of body_class tags?’ is closed to new replies.