enmoderugby Posted July 31, 2022 Share Posted July 31, 2022 Hi, I would like to change the color of just one font on the top menu (On classic theme PS 1,7) as on the attached example for 'MODE' menu. I suppose I have to use ':nth-child' on the custom.css (themes/classic/assets/css). I have tried something like that but it does not work : .header-top > li:nth-child(5) > a { color: #FF0000; } Anyone can help me ? Nicolas Link to comment Share on other sites More sharing options...
endriu107 Posted July 31, 2022 Share Posted July 31, 2022 You can try this: #header .header-top li#category-19 a[data-depth="0"] { color:red; } Link to comment Share on other sites More sharing options...
enmoderugby Posted July 31, 2022 Author Share Posted July 31, 2022 Thanks, it works like that : header .header-top li#category-80 a[data-depth="0"] { color:#ff0000; } Link to comment Share on other sites More sharing options...
enmoderugby Posted July 31, 2022 Author Share Posted July 31, 2022 But it does not works on submenu. is-it normal ? Link to comment Share on other sites More sharing options...
endriu107 Posted July 31, 2022 Share Posted July 31, 2022 If you want this also in submenu remove [data-depth="0"] from code. Link to comment Share on other sites More sharing options...
enmoderugby Posted July 31, 2022 Author Share Posted July 31, 2022 Thanks a lot Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now