Site logo

Archived topic

GenerateBlocks Highlight Text Color

9 replies · Started by Mindy on April 2, 2020

Viewing posts 1–10 of 10

Hello! Is there a place to set the color for highlighted text when using GB? I am using a paragraph block within a GB container. The highlight color does not show unless I add custom css like this:

.gb-highlight {
    background-color: #f7f30c;
}

Is there a place to set the highlight color? Thank you!!

Interesting! I have that plugin installed, but not activated. Thank you Leo!

Thank you Leo!! :-)

No problem :)

Hi there,

thats correct, the highlight tool only adds the text Color. It requires CSS to add a custom background color.

For some reason I thought that not only the word itself would stand out, but the background as well. It's a shame that you have to use additional code.

Hopefully in the future Tom will come up with something and make it so that it can be done using GB.

Anyway, thanks for the answer ;)

We may include a background color in the future.
We excluded it for now, as background colors don't look great if you have long words or multiple words highlighted and they wrap to many lines on smaller screens. Not nice.

And its only a little CSS :)

This archived topic is closed to new replies.