Highlighting single words in a Text paragraph ?
-
Hi @alasdair17 @arminunruh is it possible to highlight text in the text editor? I would like to highlight single words in a text paragraph. These highlighted words work as links.
https://axellestiefel.com/
Thanks!
Daniel -
Hi @alasdair17 @arminunruh is it possible to highlight text in the text editor? I would like to highlight single words in a text paragraph. These highlighted words work as links.
https://axellestiefel.com/
Thanks!
Daniel@danny hey do you mean so the highlighted text here has a blue background colour on the website and is also a link?
-
@alasdair17 yes - the text would have a red background and the font would be in white and is also a link:

-
you could create a character textformat.

in "textformats"
call it:
highlight
then write this css
._highlight{ background-color: red; color: white!important; }add this in:
lay options -> custom css & html -> custom css -

on the website itself it will look like this. in the gridder you wont see this style.
im writing it down as an idea for adding bg color to character textformats
-
@arminunruh great, thanks so much! Is it possible to adjust the position of the background colour? with my font the background colour sits a bit too low. The height is great though.
-
mmh do you have a link?
-
-
try this instead
._highlight{
position: relative;
}
._highlight::before{
position: absolute;
top: -3px;
left: 0;
right:0;
bottom:0;
background:red;
}and then adjust top: -3px
to for example -6px -
i cant see the page though cause its pw protected
I also code custom websites or custom Lay features.
šæ Email me here: šæ
info@laytheme.com
Our Web Development company: 100k.studio
Want to tip me? https://www.paypal.com/paypalme/arminunruh
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options ā Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it