You can disable "Change Style" in WHM > Feature Manager for your feature list(s). That's the only way I see now unfortunately to disable this unfinished theme.I want to hide the 'Switch to Glass' option for existing customers.
You can disable "Change Style" in WHM > Feature Manager for your feature list(s). That's the only way I see now unfortunately to disable this unfinished theme.I want to hide the 'Switch to Glass' option for existing customers.
Seems like "base" is now "basic", so your docs needs to be updated.We do have an API to handle this:
Code:whmapi1 set_default type='default' name='base'
Save default cPanel style · cPanel & WHM Developer Portal
This function sets the default cPanel style.api.docs.cpanel.net
"base" is the modern Paper Lantern we all know and love :D
# whmapi1 set_default type='default' name='base'
---
metadata:
command: set_default
reason: The 'base' style does not exist.
result: 0
version: 1
:~# whmapi1 set_default type='default' name='basic'
---
metadata:
command: set_default
reason: OK
result: 1
version: 1
style="display:none;"
echo '{"personalization":{"xmainNewStyleBannerDismissed":"1"}}' | uapi --user=username --input=json --output=json Personalization set
mkdir -pv /root/cpanel3-skel/.cpanel/nvdata/
echo -n "1" > /root/cpanel3-skel/.cpanel/nvdata/xmainNewStyleBannerDismissed
Not really a full answer, but here is cPanel blog post about it The Deprecation Of Retro | cPanel Blog'Retro' style is being removed during this change over. Why?
Thank you. Where exactly does that command need to be run? Doesn't work from SSH.I spoke with the user experience team and this one-line will work to remove that for existing accounts:
Code:echo '{"personalization":{"xmainNewStyleBannerDismissed":"1"}}' | uapi --user=username --input=json --output=json Personalization set
Of course, because "You do not have a user named “username”."This is just run as the root user from SSH. Did you get an error when you tried this?
cat /etc/trueuserdomains | awk {'print $2'}
for i in `cat /etc/trueuserdomains | awk {'print $2'}`; do echo '{"personalization":{"xmainNewStyleBannerDismissed":"1"}}' | uapi --user=$i --input=json --output=json Personalization set; done