-
AuthorPosts
-
April 14, 2014 at 6:20 pm #33458
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 spacingHere’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,
BruceApril 15, 2014 at 11:26 pm #33772Hi 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!
May 8, 2014 at 3:35 pm #42282Worked, thanks!
May 9, 2014 at 11:47 am #42627You’re welcome!
November 27, 2014 at 2:08 am #153789I 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!
November 27, 2014 at 9:46 am #154060Hey 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.
November 28, 2014 at 7:50 pm #154841November 29, 2014 at 6:40 pm #155109Hey 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.
December 2, 2014 at 8:58 am #156594I’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!
December 2, 2014 at 9:36 am #156617Hi 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!
December 2, 2014 at 7:59 pm #157077ok… 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?
December 3, 2014 at 3:23 am #157257Hi,
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.
-
AuthorPosts