[Resolved] GenerateBlocks Highlight Text Color

Home Forums Support [Resolved] GenerateBlocks Highlight Text Color

Home Forums Support GenerateBlocks Highlight Text Color

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1224015
    Mindy

    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!!

    #1224035
    Leo
    Staff
    Customer Support

    Hi there,

    This shouldn’t be a GB issue.

    Is this what you are referring to?
    https://wpstackable.com/blog/text-color-and-text-highlight/

    #1224104
    Mindy

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

    #1224107
    Leo
    Staff
    Customer Support

    Sorry you shouldn’t need a plugin to do something that simple.

    It’s not possible with the default paragraph block but WordPress suggests using the Classic block:
    https://wordpress.org/support/topic/add-color-to-individual-text-within-text-blocks-in-gutenburg/

    Let me know if this helps πŸ™‚

    #1224121
    Mindy

    Thank you Leo!! πŸ™‚

    #1224174
    Leo
    Staff
    Customer Support

    No problem πŸ™‚

    #1893261
    Mihail

    I installed the GB plugin that Tom created, but the highlights are not working correctly…
    Only the color of the text changes, not its background.

    settings in GB:
    https://prnt.sc/1nevmtv

    result:
    https://prnt.sc/1new2p8

    But if i add custom css background – all is ok:
    https://prnt.sc/1newhtv

    #1893298
    David
    Staff
    Customer Support

    Hi there,

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

    #1893351
    Mihail

    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 πŸ˜‰

    #1893365
    David
    Staff
    Customer Support

    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 πŸ™‚

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.