Archived topic
Custom Font Size
3 replies · Started by Math on May 21, 2021
Hi,
I'm trying to change my font size to 16px for select areas, but it keeps defaulting to 1em which is 18px on my site.
Page>Block (right hand side)>Typography>Custom>Set to 16px --> it automatically switches to "Normal" and sets it at 1em.
How do I get around this?
Thank you.
Hi there,
thats a bug in the core WordPress text block ... hoping they would have fixed that in the last update.
If you're using the core blocks then you would have to give the text block an Advanced > Additional CSS Class eg. smaller-text
And add some CSS:
p.smaller-text {
font-size: 16px;
}
Or alternatively use the GenerateBlocks plugin - the Headline Block can be set to a paragraph and you have full styling controls in the editor.
Hi David,
That was going to be my alternative, but I guess there's no choice.
Thanks for your help.
You're welcome