SOLVED WebHost Manager - Custom Right Frame UI CSS

hexa-hm

Registered
Apr 21, 2017
2
1
3
Singapore
cPanel Access Level
Root Administrator
I am currently trying to customise my WebHost Manager theme with the following guide:

How to Customize the WHM User Interface with CSS - cPanel Knowledge Base - cPanel Documentation

I have successfully cloned a default theme and added both 'menu.css' and 'main.css' with my CSS customisation into the template folder. The WebHost Manager seems to be loading the 'menu.css' for the left menu frame properly and things were working as expected. However, it is not loading the 'main.css' for the right frame UI. (Confirmed with the 'inspect' feature of Chrome).

I have also ran the './rebuildtmpl' inside the newly cloned template. The 'main.css' file is still not included in the right UI frame.

Please advice.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463
Hello,

It looks like you opened a support ticket for this issue (#8395931), but later closed the ticket before we were able to respond. Would you mind re-opening the ticket so we can take a closer look?

Thank you.
 

hexa-hm

Registered
Apr 21, 2017
2
1
3
Singapore
cPanel Access Level
Root Administrator
I've closed that ticket is because I have figured out a workaround to solve this issue.

I put my customization in the unified_optimized.css and whm_optimized.css and created a script to run after upcp incase the customization is overwritten. The script only verifies my customization codes and add them in a new line if it's not present, hence leaving all default codes from the update there.

Thanks for your time Micheal.
 
  • Like
Reactions: cPanelMichael