Horizontal line color
-
wrote on Mar 11, 2017, 10:58 PM last edited by
I have to insert different lines with different colours in the same page. I can change the color of all the lines in "lay options" but I can't change the colour of the single lines. Is it possible? And how?
Thank you very much,
Andrea -
Hey Andrea!
You can give the line element a class and then use css. Right click on the line in the gridder and click "set html class and id".
In "class" enter: blueline
Now save that and save the project.
Now go to "custom css&html" in "lay options".
In "Custom <head> content" enter:
<style> .blueline .lay-hr{ background-color: blue; } </style>
So now you can set a class "blueline" to every line that should be blue.
-
wrote on Mar 15, 2017, 12:31 PM last edited by
Great, thank you Armin, problem solved! I had forgotten to add ".lay-hr", for this reason it wasn't working.
Best,
Andrea
I also code custom websites or custom Lay features.
💿 Email me here: 💿
info@laytheme.com
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