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