Change Mode (Light/Dark)
Template modes
Digit has two modes, light and dark. By default the template uses dark mode. To switch to light mode, follow the steps below.
Change to light mode
-
Open WHMCStemplatesdigitincludeshead.tpl and search for
head.tplSmarty<link href="{assetPath file='theme-dark.css'}?v={$versionHash}" rel="stylesheet">Change it to
head.tplSmarty<link href="{assetPath file='theme-light.css'}?v={$versionHash}" rel="stylesheet"> -
Open WHMCStemplatesdigitheader.tpl and search for
header.tplSmarty<img src="{$WEB_ROOT}/templates/{$template}/img/theme-dark-logo.png" alt="{$companyname}">Change it to
header.tplSmarty<img src="{$WEB_ROOT}/templates/{$template}/img/theme-light-logo.png" alt="{$companyname}"> -
Open WHMCStemplatesdigithomepage.tpl and search for
homepage.tplSmarty<img class="domain-bg" src="{$WEB_ROOT}/templates/{$template}/img/theme-dark-domain-bg.png" alt="domain">Change it to
homepage.tplSmarty<img class="domain-bg" src="{$WEB_ROOT}/templates/{$template}/img/theme-light-domain-bg.png" alt="domain"> -
Open WHMCStemplatesorderformsdigitcommon.tpl and search for
common.tplSmarty<link rel="stylesheet" type="text/css" href="{$WEB_ROOT}/templates/orderforms/digit/css/form-theme-dark.css?v={$versionHash}" />Change it to
common.tplSmarty<link rel="stylesheet" type="text/css" href="{$WEB_ROOT}/templates/orderforms/digit/css/form-theme-light.css?v={$versionHash}" />
Digit can also follow the visitor’s system setting. Learn how to disable auto detect for light/dark mode.