I am trying to use <body <?php body_class();?>> to apply different CSS rules to every template. The problem is, the properties I have specified in the CSS get mixed up. i.e. The H1 font color for body.home get applied to body.category-blog H1, although I have specified both of them separately in the CSS.
Is there a parent-child relationship between the body classes? I have not explicitly specified it so in the CSS, but does WordPress create any such relationships?
- The topic ‘php body_class property mix up’ is closed to new replies.