Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #33458

    Bruce M
    Participant

    Hi,

    Great theme, I’m actually using it to replace another sitebuilder theme on the market, yours is much better. I have a question about adjusting the line spacing, in particular:
    A) The paragraph spacing when you hit enter to start a new line
    B) The header spacing

    Here’s a link to my site, http://orionconcepts.net/new/. Scroll all the way to the bottom to see the text in the Footer Widget section, how can I make the text throughout the rest of the site have this same spacing? Currently, if I use the text module there is a huge space above and below the header and when using standard paragraph formatting, if I hit enter to establish a new line, the space is about double. How can I reduce the paragraph spacing globally as well as the space above and below headers?

    Thank You,
    Bruce

    #33772

    Support
    Member

    Hi there!

    Thank you for using the theme!

    Please add this on Customizer > Custom > CSS:

    body {
    line-height: 1.5em;
    }

    Adjust the line-height value if you want to decrease the paragraph spacing.

    I hope that helps. Cheers!

    #42282

    Bruce M
    Participant

    Worked, thanks!

    #42627

    Rubin
    Keymaster

    You’re welcome!

    #153789

    roksivante
    Participant

    I have the same question, except the provided answer doesn’t seem to work…

    doing so brings the lines of text together close in a single body/paragraph of text –
    except any time I hit return and start a new line of text, there is still double spacing…

    how do I get the spacing even throughout with just single spacing?

    thanks!

    #154060

    Rubin
    Keymaster

    Hey There,

    can you provide us with the address of your site so we can see what’s going wrong? Could be a br break that is causing the double spacing.

    #154841

    roksivante
    Participant
    #155109

    Christian
    Moderator

    Hey there,

    That is because WordPress automatically wraps the space with a paragraph (see http://prntscr.com/5bkeon). To stop that, please add the code below in your functions.php.

    remove_filter( 'the_content', 'wpautop' );
    remove_filter( 'the_excerpt', 'wpautop' );

    Hope that helps.

    #156594

    roksivante
    Participant

    I’m not too savvy when it comes to coding…

    do I just add

    “remove_filter( ‘the_content’, ‘wpautop’ );
    remove_filter( ‘the_excerpt’, ‘wpautop’ );”

    at the END of the functions.php file?

    Do I need to add any “//” like there appears to be elsewhere?

    thanks!

    #156617

    Zeshan
    Member

    Hi Roksivante,

    Yes, you just need to add the above code at the end of the functions.php file in your child theme. However, make sure, if the functions.php file is having ?> at the end of it, just add the above provided code before that line.

    Thanks!

    #157077

    roksivante
    Participant

    ok… added the text… there was no “?>” at the end of the file…

    still making no difference.

    the gap between lines (when a new line is started by hitting return) is still way too wide/tall/deep.

    how can I adjust this spacing setting?

    #157257

    Paul R
    Moderator

    Hi,

    Yes, there should be no ?> at the end.

    Try editing your post in text editor mode and remove the <p> tags.

    http://screencast.com/t/Aq1qvkQtwP

    If that doesn’t help, you can add this under Custom > CSS in the Customizer.

    
    body p {
        margin: 0 0 10px;
    }

    Change 10px to achieve your desired spacing.

    Hope that helps. 🙂