• On my homepage I am not happy with the line spacing for the Heading 4 text in my main text box, there is way too much space between the lines of text. Can this be changed?

    My other problem is I will type out a paragraph like on the home page and I would like a double line space in-between the end sentence on “your needs.” and the beginning sentence of “As an” I have typed it that way in my edit page box but when it publishes it there is no break between these 2 sentences. What do I do here?

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Brooklynn8

    (@brooklynn8)

    Moderator Kathryn Presner

    (@zoonini)

    The default line height on h4 is 1.5. You can override that with some custom CSS like this, adjusting the value as you like:

    h4 {
      line-height: 0.6;
    }

    Don’t edit the theme files directly, otherwise your changes will be overwritten every time the theme is updated to the latest version.

    Since you’re already using Jetpack, an easy way to add custom CSS is to activate the Custom CSS module. You’ll then add your custom CSS in the new stylesheet editor that’ll appear in your dashboard, under Appearance > Edit CSS.

    I’ll answer your other question separately.

    Moderator Kathryn Presner

    (@zoonini)

    You’re using divs instead of paragraphs in your post. It looks like maybe you pasted from another source instead of either typing directly in the editor or pasting in plain text.

    I suggest removing all the divs (and their formatting classes). Once you do that, WordPress will add paragraph tags automatically and the spacing should look right again.

    To do that, flip to Text/HTML view and remove all the code you see like this:

    <div class="yiv0475444453" align="center">

    and

    </div>

    Then add this to your custom CSS to center it all nicely:

    .home .entry-content {
      text-align: center;
    }
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Text spacing’ is closed to new replies.