AduLal Posted March 27 Share Posted March 27 (edited) Hi, I've just built my new site using a 7.1 template and I need help keeping the yellow highlight on the relevant portfolio item on my homepage when selected. So for instance, when you land on the homepage the first portfolio link 'National Geographic' is already highlighted in yellow so it's clear which project you're looking at. I'm using the following code to change the portfolio items to yellow on hover. But I'm searching for new/additional code that will help do the above: .portfolio-hover-item-content:hover { color: yellow; } Site: adulalouschek.com Thanks in advance, Adu Edited March 27 by AduLal Link to comment
tuanphan Posted March 30 Share Posted March 30 Add this to Design > Custom CSS ul.portfolio-hover-items-list>li:nth-child(1) * { color: #ff0 !important; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
AduLal Posted April 6 Author Share Posted April 6 Thank you. It works in highlighting the first portfolio item title when you land on the page but I would like that first title to go back to white when I hover over another title. As you can see from screenshot there are now two titles highlighted when ideally it would just be one. Link to comment
Solution tuanphan Posted April 8 Solution Share Posted April 8 On 4/6/2023 at 5:57 PM, AduLal said: Thank you. It works in highlighting the first portfolio item title when you land on the page but I would like that first title to go back to white when I hover over another title. As you can see from screenshot there are now two titles highlighted when ideally it would just be one. Remove code I sent & use this new code ul.portfolio-hover-items-list>li:nth-child(1) * { color: #ff0 !important; } ul.portfolio-hover-items-list:hover li * { color: white !important; } ul.portfolio-hover-items-list:hover li:hover * { color: #ff0 !important; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment