Styles by pages

  • Author
    Posts
  • #115290

    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 denzingerbergoglio.com.

    #115446

    jleuze
    Theme Author

    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;
    }
    #115447

    Ok. Perfect. Thank you very much!

The topic ‘Styles by pages’ is closed to new replies.