- This topic has 5 replies, 3 voices, and was last updated 1 month ago by Fernando.
July 9, 2022 at 3:16 pm #2278193Dennis
I’m new to GeneratePress. I’ve changed the default font for headings using Typography -> All Headings. Next, on one page (not the entire site) I’d like to make H2 about 2 times its regular size. I may also need to adjust other aspects, such as font weight and letter spacing for that particular use on that page.
I imagine that involves creating a class but not sure how to start on that. Have found various other very helpful tips in support.
Thanks!July 10, 2022 at 4:21 am #2278389DavidStaffCustomer SupportJuly 10, 2022 at 11:34 am #2278744Dennis
Hi David, yes. I found that I could set the font family inside of a container to use one of the available p fonts, which seems to be working so perhaps there is not a need to create and apply a new class?
Doing that causes a couple of formatting issues for me: I’m needing to use a negative bottom margin for the container to avoid extra white space, which seems to be working but I’m not sure it’s ideal; and I’d like to reduce line height for the paragraph (so less white space between lines of wrapped text) inside the container but haven’t found that answer yet. Thanks!July 10, 2022 at 8:28 pm #2278911Fernando Customer Support
The easiest way to address this is to install free and lightweight GenerateBlocks plugin, and use a GB Headline Block instead.
Using a GB Headline Block should allow you to change the font, spacing, color, border, etc. of a Headline easily.
The WP Heading Block’s Block settings is very limited, and as you’ve mentioned, you’ll need to add classes and custom CSS to alter it properly.
Kindly let us know what you think.July 11, 2022 at 7:05 pm #2280018Dennis
Thank you Fernando. That is certainly easier than what I was doing to setting the font size and family in a container and then using the paragraph block.
Unless you suggest otherwise, I’m going to presume that it would be a generally good idea to go back and redo what I’d done with my complicated method, and use the headline.
Thanks! I appreciate the prompt and useful help.July 11, 2022 at 7:17 pm #2280022Fernando Customer Support
If it’s manageable, then redoing, and using a GB Headline block with be great.
If it’s just the font you’re modifying, using Dynamic Typography would also be a great approach. You can modify the font there, and also the bottom margin.
- You must be logged in to reply to this topic.