Control Web Panel

WebPanel => CentOS-WebPanel GUI => Topic started by: justcurious on April 20, 2017, 04:37:31 PM

Title: How to Customise CSS in Web Panel
Post by: justcurious on April 20, 2017, 04:37:31 PM
I have found the file custom.css in /usr/local/cwpsrv/htdocs/admin/design/css/ and when I use vi to edit the file, right at the top, I am invited to:

Quote
/* ------------------Put your custom code here--------------------*/

Except I can't save the file as it is read only.

All I want to do is reduce the size of the orange font in the 'Spark Stats' area.

Are we really not allowed to change the look of CWP or is this an oversight by the development team ?

Is there a 'fix' or 'workaround' ?
Title: Re: How to Customise CSS in Web Panel
Post by: Administrator on April 21, 2017, 05:19:25 AM
you can modify it but every update will replace it and updates are almost every day.
Soon there will be a new version where templates will be available.
Title: Re: How to Customise CSS in Web Panel
Post by: yunits on September 21, 2019, 09:32:12 PM
you can modify it but every update will replace it and updates are almost every day.
Soon there will be a new version where templates will be available.

Any updates on this?
custom.css should be easily excluded from update.

Additional question: Is there any way to customize the sidebar - except css?
I don't need some buttons like "Billing" so it would be nicer to have a smaller sidebar..
Title: Re: How to Customise CSS in Web Panel
Post by: PeteB on June 17, 2020, 09:52:16 PM
Love to know if we've gotten anywhere with this.  Switching between servers and seeing the same control panel "theme" is just a recipe for mistakes late in the day.  Would be nice if there was a permanent "include custom.css" that survives upgrades.