Change Site Title color hoverstate based on current page
-
wrote on Feb 6, 2017, 5:57 AM last edited by PTD Feb 6, 2017, 11:32 AM
Hi Armin,
Thank you for the latest Lay Theme update!
This is my problem: Only my "Info" page has a black background color, and I'd like the Menu and Site Title color to be white just for the "Info" page. That seems to work, however, when hovering over the Site Title it doesn't stay white.
I've used the code from here without any luck:
http://laytheme.com/documentation.html#css-based-on-current-pageThank you!
-
Global Moderatorwrote on Feb 6, 2017, 9:50 AM last edited by arminunruh Feb 6, 2017, 4:55 AM
Hey!
Try:body.slug-info .sitetitle.txt:hover .sitetitle-txt-inner span{ color: white; }
The html changed slightly so your css didn't work properly anymore. I updated the docs now to reflect that change.
-
wrote on Feb 6, 2017, 4:27 PM last edited by
Hi Armin,
Thank you! That worked perfectly!
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
Online Users
Forgot your key, lost your files, need a previous Lay Theme or Addon version?
Go to www.laykeymanager.com