- This topic has 19 replies, 3 voices, and was last updated 3 years ago by
Tom.
-
AuthorPosts
-
February 21, 2015 at 4:46 pm #77967
Marco Caprio
Hi, I recently upgraded to GP Premium v1.1.
I was able to make almost every desired personalization to my website layout, except one: now I’d like to change the inter-line spacing of text content.
I’ve looked around for a while, but I haven’t found any specific command… so I’m wondering if it is possible to accomplish this task WITHOUT writing code in the Plugin Editor.
Thanks for your support!February 21, 2015 at 8:59 pm #78110Tom
Lead DeveloperLead DeveloperHi Marco,
Are you wanting to increase/decrease the spacing between paragraphs?
If so, CSS like this should work:
p { margin-bottom: 20px; }
Then you can adjust the pixels to your liking.
You can use the plugin in my signature to add this CSS, so you don’t have to use the editor.
Hope this helps π
February 22, 2015 at 1:26 pm #78514Marco Caprio
Perfect, thank you Tom!
Best regards,
Marco
February 23, 2015 at 12:18 am #78740Tom
Lead DeveloperLead DeveloperYou’re welcome π
August 26, 2015 at 3:46 pm #132324Collin
I just came across this while rebuilding our site. Very helpful! It will help me with several sites where I hated the default spacing in the themes.
August 26, 2015 at 7:11 pm #132348Tom
Lead DeveloperLead DeveloperGlad it’s helpful! π
November 13, 2015 at 12:29 pm #152786Don
I’ve designed with DW for years and more recently WP and now graduated to GP. I have not had a problem with line spacing until now. The lawyer I am designing for wants the line spacing in paragraphs reduced slightly. (I don’t want to, but I am just the web designer:)
Here is what I have in “Edit CSS”:
p {
margin-top: 1px;
margin-bottom: 10px;
margin-right: 100px;
margin-left: 4px;
}I’ve tried values from 0 to 400px and it changes nothing. To me it is obvious it is being overridden by some later CSS code. I view with the “Preview” button which usually is an up to date version with no cache problems. Also emptied cache.
Here is more code that doesn’t work:
/* Font Size, but all settings are overridden someplace */
.entry-content {
font-size: 27px;
}I do not have a Child Theme with this site, but use the “Edit CSS” Add On.
I’ve never accomplished much with the “Edit CSS” since using GP??
I need help,
DonNovember 13, 2015 at 1:49 pm #152829Tom
Lead DeveloperLead DeveloperI think you’re looking for line-height.
So it would be:
p { line-height: 17px; }
Adjust as needed π
September 12, 2016 at 12:50 am #225695Tully
Hi Tom,
How would I change the line-height for mobile view only? Thanks
September 12, 2016 at 8:28 am #225838Tom
Lead DeveloperLead DeveloperYou would do this:
@media (max-width: 768px) { p { line-height: 17px; } }
September 13, 2016 at 5:43 pm #226238Tully
Thanks Tom. I had tried that with no result, but when I removed the p and {} it worked?
September 13, 2016 at 11:42 pm #226263Tom
Lead DeveloperLead DeveloperThat’s strange, that should break the CSS as it’s not proper syntax.
The above will only apply to paragraphs – is the text you’re targeting inside paragraphs?
September 14, 2016 at 3:11 am #226299Tully
I would have thought the text was in paragraphs, but I don’t really know what I am talking about so perhaps not!
September 14, 2016 at 8:48 am #226390Tom
Lead DeveloperLead DeveloperIf you’d like to link me to a page where it’s not working I can take a look π
September 14, 2016 at 4:07 pm #226484Tully
Its all working fine with the P and {} removed thanks Tom, so all good.
-
AuthorPosts
- You must be logged in to reply to this topic.