T-bird Posted Monday at 10:54 PM Share Posted Monday at 10:54 PM (edited) I've just migrated to PS version 8.2.0 and for the most part I've got everything looking like I want, but I'm damned if I can figure out how to change the background colour of the top menu: and text block: I've searched everywhere in themes/classic/assets/css/theme.css and found all the other colours I wanted to change but I just cannot find the styles controlling the background colour of these two items. Can anyone point me in the right direction please? Is there another style sheet somewhere that I haven't found? Edited Monday at 10:55 PM by T-bird (see edit history) Link to comment Share on other sites More sharing options...
ComGrafPL Posted Tuesday at 07:45 AM Share Posted Tuesday at 07:45 AM URL would be great to see it. Link to comment Share on other sites More sharing options...
WebDesk Solution Posted Tuesday at 08:48 AM Share Posted Tuesday at 08:48 AM @T-bird To change the background color of the top menu and text block, please follow these steps:Step 1: Open the CSS file for custom styles, usually found at (If this file does not exist, create them.)File Path: themes/{{your_theme}}/assets/css/custom.cssStep 2: Paste the following code into the custom.css file for the top menu background please add this CSS #header, #header .header-top { background-color: #000033; }Note: Add the color you want to the background-color property. Also, for the text block background please add this CSS #custom-text { background: #000033; }Note: Add the color you want to the background property.Step 3: In your PrestaShop admin panel, go to Advanced Parameters > Performance, and click Clear Cache.Step 4: Visit the front end to confirm that the background color changed. Review the screenshot reference if needed. We hope this solution works for you! Link to comment Share on other sites More sharing options...
T-bird Posted Wednesday at 01:42 AM Author Share Posted Wednesday at 01:42 AM Thank you. It worked for the text block, but not the header. I tried changing every instance of #header .header-top { background-color: #......; } in theme.css (I'd rather change this than create a new custom one) but the header will not change colour. Link to comment Share on other sites More sharing options...
WebDesk Solution Posted Wednesday at 10:16 AM Share Posted Wednesday at 10:16 AM @T-bird Okay, we reviewed your last comment regarding changing the header color via theme.css. Instead of creating a new custom CSS, kindly add the following CSS to the theme.css file body #header .header-top { background: #000000; } After adding the CSS, make sure to clear the cache from the back office. Then, visit the frontend to confirm that the header background color has been updated. Hope this solution will work for you..!! 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