Okay
  Public Ticket #977669
permanent highlighted text?
Closed

Comments

  • Tibor started the conversation

    Is there a way to have permanent highlighted text, like in attached photo?

  •  2
    Maurice replied

    You could do this with a bit of HTML and CSS :)

    Paste this snippet into the Custom CSS area (Cogwheel symbol in the Visual Composer):

    .text-highlight {
    background-color: #303030;
    color: #FFFFFF;
    }

    When you're writing a sentence, you have to wrap your to-be-highlighted text inside a span-tag - like this:

    Hi, I'm a <span class="text-highlight">highlighted</span> text.

    See example: https://jsfiddle.net/vz26gpua/

  • Tibor replied

    "Paste this snippet into the Custom CSS area (Cogwheel symbol in the Visual Composer)" Can you screenshoot me where I paste this css code, cant figure it out, when I click Codwheel in VC it only lets me save as preset... Thanks a million :))

  •  8,996
    Tahir replied
    @Tibor, You can add it to the Custom CSS box located in your Salient Options panel as well (Make Sure there are no red cross in the Box) . Thanks


    ThemeNectar Support Team