esc
↑↓ navigate↵ openesc close

Change Direction to RTL

How To#LTR#RTL#direction#arabic

Version 2.9.8 and higher

When your WHMCS system language is Arabic or any other right-to-left language, the template switches to the RTL layout automatically.

Version 2.9.7 and lower

Client area template

Open WHMCStemplatesdigitincludeshead.tpl.

  1. Search for

    head.tplSmarty
    <link href="{$WEB_ROOT}/templates/{$template}/css/all.min.css?v={$versionHash}" rel="stylesheet">

    and add this line after it:

    head.tplSmarty
    <link href="{$WEB_ROOT}/templates/{$template}/css/bootstrap-rtl.min.css?v={$versionHash}" rel="stylesheet">
  2. Search for

    head.tplSmarty
    <link href="{$WEB_ROOT}/templates/{$template}/css/theme-dark.css?v={$versionHash}" rel="stylesheet">

    and add this line after it:

    head.tplSmarty
    <link href="{$WEB_ROOT}/templates/{$template}/css/custom-rtl.css?v={$versionHash}" rel="stylesheet">

Order form

Open WHMCStemplatesorderformsdigitcommon.tpl and add this code on the last line:

common.tplSmarty
<link rel="stylesheet" type="text/css" href="{$WEB_ROOT}/templates/orderforms/digit/css/custom-rtl.css?v={$versionHash}" />
Still need help with this?Open a ticket