We are currently testing OJS 3.0.2.
We created our own themes for the frontend by following the Theming Guide and it works fine.
We would like to also apply our theme to the backend but we didn’t manage to do it even by following the Theming the Editorial Backend Guide.
We created a theme for the site level and several themes for each of our journals.
We would like to change the look of the backend in each case.
We tried to add stylesheet to the backend by passing a context argument to the addStyle method in the init function of a theme like this:
$this->addStyle(‘bbody’, ‘styles/bbody.less’,array( ‘context’ => ‘backend’ ));
As a test, we copied the body.less file of pkp backend to the “styles” directory of our custom theme:
cp lib/pkp/styles/structure/body.less plugins/themes/customTheme/styles/bbody.less
Then we modified one of the code line of the bbody.less file like this:
We loaded again the custom theme via the setting site, but nothing happened.
We did some other tests but, it’s still the same thing.
Maybe there is something we are missing or we are doing wrong.
Thanks in advance to enlight us of how doing it properly.