• Resolved asaracena

    (@asaracena)


    I love your theme and keep finding more ways to use it. I just figured out how to put post excerpts on the homepage which is great, but I’m not happy with the post titles.

    My issue is the spacing between text lines in the titles of the homepage posts – it looks like there is a full blank line between each line of title text. (https://100friends.org)

    Is there an easy code fix for to lessen this space?

Viewing 10 replies - 1 through 10 (of 10 total)
  • Hey,
    You can adjust with this css:

    .home_blog article header h4 {
    line-height: 20px;
    margin: 0;
    }

    Kadence Themes

    Thread Starter asaracena

    (@asaracena)

    I can’t get this to work with the theme custom css or with Simple Custom CSS plugin.

    There are font options that you provide but only font size and color are working – line height is not.

    I think I’ll try a child theme to see if that works.

    I can see that you’ve add a line-height with a minus number.. that won’t work. a line height has to be a positive number. If you just use say this:

    .home_blog article header h4 {
    line-height: 10px !important;
    }

    it will work.

    Kadence Themes

    Thread Starter asaracena

    (@asaracena)

    It doesn’t work with 10px, or 20px so I tried to see if a negative line height would show some type of change. Does nothing actually.

    Thread Starter asaracena

    (@asaracena)

    Sorry – I take it back. For some reason it wasn’t working at all earlier but it’s working fine now. Thanks!

    Apologies, new at this.
    Where exactly would you insert this snippet to affect the blog title’s leading?
    I assume it’s in the “Blog Page Template (page-blog.php)” editor?

    In the theme options > advanced settings. Custom css box.

    Kadence Themes

    Beautiful, thank you for such a brilliant theme.

    Hi, I see that once you’ve added this snippet, it stays in the Custom CSS box. If you remove it, the post headers revert to what they were before (the line spacing too big)

    If you need to add any new code (for something else) do you add it before the previous code and then submit both snippets (the old and the new) together?

    basically, what I’m asking is how do you add a snippit, make sure it ‘stays’, and then add any other snippet thereafter to also ensure it stays.

    Pls advise

    It’s just a text box, you can just click enter and start a new line with any of your new css.

    Kadence Themes

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Change line spacing on homepage post titles?’ is closed to new replies.