[Resolved] CSS to target only Blog Homepage post titles?

Home Forums Support CSS to target only Blog Homepage post titles?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #388851
    onlyonemj

    Hey guys,

    What’s the CSS to target just the post titles only on blog homepage? For example (guessed but didn’t work):

    .blog .entry-title h2 {
    font-family: “Lato”, sans-serif;
    font-size: 26px;
    }

    What I’m trying to do here is to specifically change the typography of the blog homepage h2 titles without affecting the typo/font-size of the h2 elsewhere as controlled by customiser > tpogrpahy > headings > h2

    Cheers!

    P.S. How do I know/find out what class/ID the blog home page has? Or any other page for that matter as it’s not showing up in inspect. Is there a sort of class/ID list somewhere?

    GeneratePress 1.4
    #388923
    Leo
    Staff
    Customer Support

    Hi there,

    Try .blog h2.entry-title

    You should be able to find their ID in the <body> tag on top of the inspect window.

    Let me know if this helps.

    #389471
    onlyonemj

    I missed the body tag for the ID. Given code worked. Thanks very much! 🙂

    #389480
    Leo
    Staff
    Customer Support
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.