DavidSloan Posted September 28, 2016 Share Posted September 28, 2016 (edited) Hi I am looking for help with changing the colours of the items on the horizontal top level menu. This was done previously by someone who previously setup my Prestashop. I have little coding knowledge, but it would appear the hex colours are there but the css is setting all the buttons the same. Please see below the colours are already there but the items keep reverting back to #6A89A2 How should I edit the code to pick up on the colours outlined? The website is isew2.co.uk .sf-menu > li { float: left; padding: 2px; background-color: #6A89A2; margin-right: 5px; } .sf-menu > li:last-child { margin-right: 0; } .sf-menu > li[data-label=About us] { background-color: #e38185; } .sf-menu > li[data-label=Classes] { background-color: #7eaf8e; } .sf-menu > li[data-label=Fabrics] { background-color: #faa442; } .sf-menu > li[data-label=Sewing Machines] { background-color: #86749e; } .sf-menu > li[data-label=My Account] { background-color: #ac8f8b; } .sf-menu > li[data-label=Gift Vouchers] { background-color: #b9c164; } .sf-menu > li[data-label=Sale] { background-color: #62afce; } .sf-menu > li[data-label=Contact Us] { background-color: #969495; } Many thanks. Edited September 28, 2016 by DavidSloan (see edit history) Link to comment Share on other sites More sharing options...
rocky Posted September 30, 2016 Share Posted September 30, 2016 It's probably better to use nth-child so it works no matter what the text label is. For example: .sf-menu > li:nth-child(1) { background-color: #e38185; } .sf-menu > li:nth-child(2) { background-color: #7eaf8e; } .sf-menu > li:nth-child(3) { background-color: #faa442; } .sf-menu > li:nth-child(4) { background-color: #86749e; } .sf-menu > li:nth-child(5) { background-color: #ac8f8b; } .sf-menu > li:nth-child(6) { background-color: #b9c164; } .sf-menu > li:nth-child(7) { background-color: #62afce; } .sf-menu > li:nth-child(8) { background-color: #969495; } Link to comment Share on other sites More sharing options...
DavidSloan Posted September 30, 2016 Author Share Posted September 30, 2016 THANK YOU SO MUCH ROCKY!! This worked...I really appreciate that. I also applied it to hover coding too and that worked too ... awesome!! 1 Link to comment Share on other sites More sharing options...
b.tsvetkov Posted October 7, 2016 Share Posted October 7, 2016 It's probably better to use nth-child so it works no matter what the text label is. For example: .sf-menu > li:nth-child(1) { background-color: #e38185; } .sf-menu > li:nth-child(2) { background-color: #7eaf8e; } .sf-menu > li:nth-child(3) { background-color: #faa442; } .sf-menu > li:nth-child(4) { background-color: #86749e; } .sf-menu > li:nth-child(5) { background-color: #ac8f8b; } .sf-menu > li:nth-child(6) { background-color: #b9c164; } .sf-menu > li:nth-child(7) { background-color: #62afce; } .sf-menu > li:nth-child(8) { background-color: #969495; } Where I have to make these changes? I mean which file is it? Link to comment Share on other sites More sharing options...
rocky Posted October 7, 2016 Share Posted October 7, 2016 themes/default-bootstrap/modules/blocktopmenu/css/superfish-modified.css 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