pad420 Posted February 17, 2023 Share Posted February 17, 2023 Hello, I want to add custom CSS and JS to the back office. I've tried writing code inside the overrides.css file inside admin/themes/default/css/overrides.css but it didn't work. Any ideas? :c Link to comment Share on other sites More sharing options...
Nickz Posted February 17, 2023 Share Posted February 17, 2023 2 hours ago, pad420 said: Any ideas? Add it to theme.css, style.css whichever is used. Have a backup of the file you edit before editing. 1 Link to comment Share on other sites More sharing options...
dr7tbien Posted February 17, 2023 Share Posted February 17, 2023 Hi. 1. Enter on the back office 2. Control + u to see the html code 3 Control + F and look for .css - This will let you see the lines that contain .css, that is, the css files. In my case with ps1.7 one of the last lines is: <link href="/admin-dir/themes/default/css/overrides.css" rel="stylesheet" type="text/css"/> Edit the file /admin-dir/themes/default/css/overrides.css and write the css code you want. Clean the cache of prestashop and the browser. :) 1 Link to comment Share on other sites More sharing options...
pad420 Posted February 17, 2023 Author Share Posted February 17, 2023 12 minutes ago, dr7tbien said: Hi. 1. Enter on the back office 2. Control + u to see the html code 3 Control + F and look for .css - This will let you see the lines that contain .css, that is, the css files. In my case with ps1.7 one of the last lines is: <link href="/admin-dir/themes/default/css/overrides.css" rel="stylesheet" type="text/css"/> Edit the file /admin-dir/themes/default/css/overrides.css and write the css code you want. Clean the cache of prestashop and the browser. For some my Prestashop version doesn't link this file in the back office. 41 minutes ago, Nickz said: Add it to theme.css, style.css whichever is used. Have a backup of the file you edit before editing. Worked for me, thank you. I presume that the changes I'll make to this file will disappear once I upgrade to version to 1.7.8.8, right? Link to comment Share on other sites More sharing options...
Nickz Posted February 17, 2023 Share Posted February 17, 2023 1 hour ago, pad420 said: worked for me, thank you. I presume that the changes I'll make to this file will disappear once I upgrade to version to 1.7.8.8, right? That is correct. When all is checked you save that file or the modification and set it after updating. Do not update without a proper backup; (all files needed to restore the shop). 1 Link to comment Share on other sites More sharing options...
GrinGEO Posted September 9 Share Posted September 9 Im wondering if this is still wroking. I tryed the override.css, but no changes happen to backend design. Link to comment Share on other sites More sharing options...
Nickz Posted September 9 Share Posted September 9 33 minutes ago, GrinGEO said: Im wondering if this is still wroking. I tryed the override.css, but no changes happen to backend design. have you cleared your caches? Shop, Browser? Link to comment Share on other sites More sharing options...
GrinGEO Posted September 9 Share Posted September 9 yes both but no change. Don't know if this issue maybe 1.7.8 related. ev. it uses already the new-theme design instead of default? Link to comment Share on other sites More sharing options...
A Bit of Home Posted October 15 Share Posted October 15 I am trying the same thing. Edit the overrides.css file and no change to the admin output. I am on PS 8.1.7 and the problem still appears to exist. Link to comment Share on other sites More sharing options...
Andrei H Posted October 16 Share Posted October 16 Hello, I just tested with PS 8.1.7 and it does work as expected. Can you add the following CSS code to admin-dev/themes/default/css/overrides.css file: .bootstrap .page-head .page-title { color: green !important; } Then go to the dashboard page and hard reload the browser window (Ctrl + Shift + R or Ctrl + F5 in Chrome). At this point, the title of the page should be green, as shown in my screenshot below Link to comment Share on other sites More sharing options...
A Bit of Home Posted October 18 Share Posted October 18 Have tried agai On 10/16/2024 at 10:52 AM, Andrei H said: Hello, I just tested with PS 8.1.7 and it does work as expected. Can you add the following CSS code to admin-dev/themes/default/css/overrides.css file: .bootstrap .page-head .page-title { color: green !important; } Then go to the dashboard page and hard reload the browser window (Ctrl + Shift + R or Ctrl + F5 in Chrome). At this point, the title of the page should be green, as shown in my screenshot below Thanks Andrei, I did get it to work as you described. 1 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