Adding a stylesheet or script to the backend

There are some cases in which customizing a backend LiveWhale interface is necessary, yet the backend does not use Themes and instead depends on core styles and scripts. There is a best practices way to implement a custom script or stylesheet to the backend.

 

If you want to add a custom script or stylesheet to the backend, just go into any custom app and add the following line(s):

 

//for custom scripts

$_LW->REGISTERED_JS[]=‘/live/resource/js/path/to/script’;

 

//for custom stylesheets

$_LW->REGISTERED_CSS[]=‘/live/resource/css/path/to/stylesheet’;