Customizing the style of an admin page¶
How to make style customizations to admin pages.
Assumptions¶
Readers are expected to have experience with Zotonic templates.
How¶
Creating a custom style for admin pages is best done using a module:
- In your site, create the directory
modulesif it doesn’t exist. - Create a directory for your skin, for instance
mod_skin_admin. - Populate the module directory with the module
.erlfile, sub directorieslib/css/andtemplates/(see also: Structure). - Put your custom CSS file (f.i.
skin-admin.css) inlib/css/. - Create a template file
_html_head_admin.tplwith the contents{% lib "css/skin-admin.css" %}. - Enable the module in admin.