• How do I control the line spacing when I enter text? Adventure Journal automatically inserts a blank line when I hit return, which I don’t want. This happens whether I type directly into the edit screen or cut and past from Word. I can’t see buttons anywhere for changing line spacing or font. When I first created this site months ago, I think I found a solution, but can’t remember it. Please help!

    Here’s my site: https://www.merrynglover.com/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi Merry,
    Your theme is putting a 1em bottom margin on your <p> tags. In english what that means is that when you press return it is creating a new paragraph which is perfectly normal. The problem you have is (and having looked at your site I agree ?? ) that the space between paragraphs is too big. You can edit the <p> entry in your style.css file directly but I would strongly advise you to set up a child theme first, and add the css change to that. This means that if the theme gets updated you wont lose the change.
    Once you have the child theme set up you can make whatever changes you like to the .css file and you can always get back to the original theme later if you break anything.
    In the style.css file you need to add the following to adjust the bottom margin on the <p> tags:

    p {
           margin-bottom: 0.3em;
    }

    you can play with the value to get something more visually appealing!
    Hope this helps

    Martin

    Thread Starter merrynglover

    (@merrynglover)

    Wow! Thanks Martin for such a comprehensive reply. I was hoping to use WordPress without having to get so technical and start digging around in the innards, but I guess I have to either do that or accept what it gives me automatically. This is not my area of expertise AT ALL, so will need to decide how to proceed. Really appreciate your kindness in taking the time to reply. Bless you.

    Your’e welcome!
    I hope I didn’t make it sound too “techy”, the whole point of using WordPress is that you shouldn’t need to get involved in code. Most of the time these things are quite simple – unless you are trying to do major customisation work on a theme.
    I’ve had a bit of a dig around to see if there is a simpler way for you to do this.
    The first thing to note is that this theme, according to the entry in the WordPress theme directory “hasn’t been updated for over 2 years and may have incompatibilities with newer versions of WordPress”. This isn’t necessarily a problem, its a great looking theme and I can see why you wouldn’t want to switch to another one just to fix a paragraph bottom margin!
    I’ve had a closer look at the theme itself and if all you want to do is fix the spacing problem then there is an option in the Appearance > Theme Options tab to enter the location and name of a custom stylesheet. If you have ftp access all you have to do is upload a file called “adventure-custom.css” to the “/wp-content/themes” folder and enter the path and name of the file in the field ie. “wp-content/themes/adventure-custom.css” .
    The file should contain the following:

    p {
           margin-bottom: 0.3em;
    }

    Then if you need to ask for any more help with css tweaks you will just need to add the code people here will give you to this file and it will override the main css, without interfering with the things you aren’t tweaking.
    Hope this helps – give me a shout if you need any more help.

    Regards

    Martin

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Line Spacing’ is closed to new replies.