Default WHM theme for new resellers

cPanelDon

cPanel Quality Assurance Analyst
Staff member
Nov 5, 2008
2,545
12
268
Houston, Texas, U.S.A.
cPanel Access Level
DataCenter Provider
Twitter
How to configure the default WHM theme for new resellers?
It is possible to set a default WHM theme for new resellers by creating a file at the following path that contains the name of the theme:
Code:
/root/cpanel3-skel/.whmtheme
Via root SSH access, here is an example command to set a default theme for new resellers where the WHM theme name is "x" (that is the stock-default for WHM):
Code:
# echo "x" > /root/cpanel3-skel/.whmtheme
To view the file contents and confirm what was just set, the following may be used:
Code:
# cat /root/cpanel3-skel/.whmtheme
Example output:
Code:
# cat /root/cpanel3-skel/.whmtheme
x
WHM theme names may be obtained or confirmed using one of the following methods:
1.) Via the following WHM menu paths:
WHM: Main >> Themes >> Change WHM Theme
WHM: Main >> Themes >> Universal Theme Manager >> WHM [Manage Themes]
2.) Via a directory listing of the following path:
Code:
/usr/local/cpanel/whostmgr/docroot/themes/
Example commands:
Code:
# ls -ahl /usr/local/cpanel/whostmgr/docroot/themes
# find /usr/local/cpanel/whostmgr/docroot/themes -maxdepth 1 -type d
 

cPanelDon

cPanel Quality Assurance Analyst
Staff member
Nov 5, 2008
2,545
12
268
Houston, Texas, U.S.A.
cPanel Access Level
DataCenter Provider
Twitter

cPanelDon

cPanel Quality Assurance Analyst
Staff member
Nov 5, 2008
2,545
12
268
Houston, Texas, U.S.A.
cPanel Access Level
DataCenter Provider
Twitter
But this way each client has to access and configure WHM.

Is there a way to do this for them all at once?
The WHM theme can be manually set for individual resellers via SSH access using a command like the following example, where "$username" should be replaced with the reseller's login username and where "x" (the default WHM theme) should be the name of the desired WHM theme:
Code:
# echo "x" > ~$username/.whmtheme