Stuart Newton Posted March 30, 2021 Share Posted March 30, 2021 I would like to add RTL css to Twenty One, as the 75% of my customers are Persian and read in Farsi. Can anyone help. I have seen this function {* RTL language *} {if $LANG.textdirection eq "rtl"}<link rel="stylesheet" type="text/css" href="{$WEB_ROOT}/templates/{$template}/css/rtl.css" />{/if} {* /end RTL language *} I am happy to create a new rtl.css, but can't understand this part $LANG.textdirection eq "rtl", where do I define this? I tried searching the language files for $LANG.textdirection but noting returns Thx 0 Quote Link to comment Share on other sites More sharing options...
ThemeMetro Posted April 1, 2021 Share Posted April 1, 2021 You should use like below {if $LANG.locale == 'ar_AR' || $LANG.locale == 'he_IL' || $LANG.locale == 'fa_IR'} {/if} 0 Quote Link to comment Share on other sites More sharing options...
AladdinJ Posted May 1, 2021 Share Posted May 1, 2021 Hello Stuart Newton can you share with us the RTL CSS thanks 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.