Comments Tibor started the conversationDecember 5, 2016 at 1:55amIs there a way to have permanent highlighted text, like in attached photo? 2Maurice repliedDecember 5, 2016 at 11:05amYou 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 repliedDecember 5, 2016 at 1:38pm"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,996Tahir repliedDecember 5, 2016 at 2:26pm@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 Sign in to reply ...
Is there a way to have permanent highlighted text, like in attached photo?
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/
"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 :))
ThemeNectar Support Team