• Resolved libra20

    (@libra20)


    I’m trying to make the font size of blog excerpts different from the blog post.

    I made the blog font 16 using the following code and it worked great.

    .post p {
    font-size: 16px;
    }

    Then I tried to make the excerpt 14, but it didn’t work. (The excerpt stayed at 16 from the code above.) Here’s what I used:

    .post .entry-excerpt p {
    font-size: 14px;
    }

    Any suggestions? Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,
    if class .entry-excerpt is within .post you can try the following:

    .post > p.entry-excerpt {
    font-size: 14px;
    }

    Hello,
    if class .entry-excerpt is within .post you can try the following:

    .post > p.entry-excerpt {
    font-size: 14px;
    }
    Thread Starter libra20

    (@libra20)

    Can you clarify what you mean by “if class .entry-excerpt is within .post”

    I’m new to code. Am I placing that part of the code inside the other? If so, can you show me exactly how so I do it correctly? Or are you meaning something else?

    Thanks.

    Thread Starter libra20

    (@libra20)

    I tried doing what you said, but it didn’t work. But I may also be doing it incorrectly.

    Thread Starter libra20

    (@libra20)

    This is the code that ended up working.

    .post .post-content p {
    font-size: 14px;
    }

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Excerpt font size’ is closed to new replies.