Hi All,
I have recently been tasked with getting together a new theme to be applied to the Zabbix log in screen and also some modifications on the dashboard...
I have found a tutorial on the forum which explains what steps are required for your custom css theme to be added to the drop down, but i have a few questions...
(tutorial: https://www.zabbix.com/documentation...erface/theming)
Currently we are using blue-theme.css and when i look at the login screen on developer tools i can see that this is the active css. If i then change the theme to the dark one in the dashboard, the login screen stays the same? So i suppose my first question is:
How do i make the login screen default to my new custom theme?
Moving on from this, the guy who installed Zabbix decided to do it using the console rather than installing the GUI, whilst this isn't a massive problem for me, i am a little stuck on the best way to modify the z.php file to add the option for my custom theme to be selected and also how i would upload it and where. If anyone would be able to point me in the right direction i would appreciate it as this is a steep learning curve for me!
Thanks
UPDATE
Hi All,
So i have managed to connect to my server with FileZilla using the root account (this is an internal server, and will disable the root account as an FTP user after this has been done)
But i am struggling to find where the following files are located (quote from guide in documentation, paths/files in bold)
Step 1
To define your own theme you'll need to create a CSS file and save it in the styles/ folder (for example, custom-theme.css). You can either copy the files from a different theme and create your theme based on it or start from scratch.
Step 2
Add your theme to the list of themes returned by the Z::getThemes() method. You can do this by overriding the ZBase::getThemes() method in the Z class. This can be done by adding the following code before the closing brace in include/classes/core/Z.php:
Would anyone be able to point me in the right direction?
Thanks
I have recently been tasked with getting together a new theme to be applied to the Zabbix log in screen and also some modifications on the dashboard...
I have found a tutorial on the forum which explains what steps are required for your custom css theme to be added to the drop down, but i have a few questions...
(tutorial: https://www.zabbix.com/documentation...erface/theming)
Currently we are using blue-theme.css and when i look at the login screen on developer tools i can see that this is the active css. If i then change the theme to the dark one in the dashboard, the login screen stays the same? So i suppose my first question is:
How do i make the login screen default to my new custom theme?
Moving on from this, the guy who installed Zabbix decided to do it using the console rather than installing the GUI, whilst this isn't a massive problem for me, i am a little stuck on the best way to modify the z.php file to add the option for my custom theme to be selected and also how i would upload it and where. If anyone would be able to point me in the right direction i would appreciate it as this is a steep learning curve for me!
Thanks
UPDATE
Hi All,
So i have managed to connect to my server with FileZilla using the root account (this is an internal server, and will disable the root account as an FTP user after this has been done)
But i am struggling to find where the following files are located (quote from guide in documentation, paths/files in bold)
Step 1
To define your own theme you'll need to create a CSS file and save it in the styles/ folder (for example, custom-theme.css). You can either copy the files from a different theme and create your theme based on it or start from scratch.
Step 2
Add your theme to the list of themes returned by the Z::getThemes() method. You can do this by overriding the ZBase::getThemes() method in the Z class. This can be done by adding the following code before the closing brace in include/classes/core/Z.php:
Would anyone be able to point me in the right direction?
Thanks
Comment