Jump to content

Adding custom CSS and JS to the backoffice Prestashop 1.7.8.7


pad420

Recommended Posts

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.

:)

  • Thanks 1
Link to comment
Share on other sites

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

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).

  • Thanks 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...