Gutenberg paragraph block font size selector

Posted in: Newspaper
Post count: 4

Hello everyone
I have a slight problem.
I am using the Gutenberg editor for my posts and when I use the font size selector for some lines it doesnt work because the font size is overriden by a setting of your theme.

Is there any workaround? May I enqueue yours CSS earlier than the block editor?

Post count: 27744

Hello,

When you select a paragraph for which you want to change the font size, you must add an extra class https://i.imgur.com/x2kFaVX.png for example, “big-word” and you need to use this custom code CSS => https://i.imgur.com/gVkTg1U.png

.single .tdb-block-inner > p.big-word
{
font-size: 42px!important;
}

The code needs to be set in Theme panel -> Custom code -> Custom CSS

Hope this helps you!

Thank you!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.