Styles by pages
-
Good Morning. I wanted to know how do I modify styles with CSS just in the pages, without having changes in the post. Specifically this:
.entry-content h3,.entry-content h3 a {
background-color: #f9f9eb;
color: #556B2F;
font-size: 20px;
font-family: “Le monde journal”;
}The blog I need help with is: (visible only to logged in users)
-
Hi, if you look at the source code, each page has a set of classes on the body tag specific to that page or post. Each page has a .page body class, so you can target just pages using body.page, like this:
body.page .entry-content h3,.entry-content h3 a { font-size: 26px; }
-
- The topic ‘Styles by pages’ is closed to new replies.