Jump to content

Add styles to Back-Office


Recommended Posts

Just create a file in PRESTA_PATH/override/classes/controller/AdminController.php with following contents:

<?php

class AdminController extends AdminControllerCore
{
public function setMedia()
{
parent::setMedia();
$this->addCSS(__PS_BASE_URI__.'path_to_your_css_file.css', 'all', 10);
}
}

After creating this file you may need to clear (delete file) Prestashop class cache. It's in path: PRESTA_PATH/cache/class_index.php.

 

// Edit: I don't know why but forum strips all spaces/indents from code I'm pasting. Here you have better formated code: http://pastebin.com/nWTzcjMH

Edited by deuterit (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...