Tagged: LayerSlider
I have a text link in a LayerSlider and I would like to have the text change color when you hover the mouse over the text link.
As a test, I tried putting the following into the CustomCSS field of the text layer “For Small Businesses”
a:hover { color: green; text-decoration: underline }
See screen capture:
https://www.dropbox.com/s/zgdmi468sa6lw0j/2016-01-06_14-10-47.jpg?dl=0
So far I haven’t had any success at getting it to work.
Hey Owen!
Add this to your custom CSS.
.avia-layerslider strong:hover {
color: red !important;
}
Cheers!
Elliott
I added the code to the Custom CSS field in the LayerSlider Styles tab and it didn’t work.
Hi!
Please do try the following
.avia-layerslider strong a:hover {
color: red !important;
}
and let us know if it is working as should.
Best regards,
Basilis
Nope, still doesn’t work.
I am leaving the “Pricing for Small businesses” un-touched so you can look at what may be causing it.
I am modifying “Pricing for Med/Large Businesses”….Trying to find what may be causing it.
I changed “Pricing for Med/Large businesses” from H3 to Paragraph and neither of the above solutions work for that either. Could it have anything to do with me using H3?
Any change I do I wan to apply ONLY to THIS LayerSlider…I don’t want any other sliders to have this hover font color.
Thanks for your help!
-Owen
Hey!
Thank you for the info. Please edit the text layer then go to the Attributes panel. In the “Class” field, add “custom-text” then save. Use this code in the Quick CSS field:
.custom-text:hover {
color: red !importan;
}
Regards,
Ismael
BINGO! That worked!
For people searching this in future, I corrected a mistake above….what worked is:
.custom-text:hover {
color: red !important;
}
(The “t” was missing from “important”)
Thanks for the help!
-Owen