saab Posted August 23, 2009 Share Posted August 23, 2009 Hello, I have changed a template to RTL but there is a problem that can be solved with a php code but I have no PHP knowledge,When I change the template to rtl, all languages use that template and ltr languages goes right too, I asked WHMSC support for any idea and they answered me as below: "You would need to edit the header.tpl file of your template and put an if statement in the header to check the language and change the text direction if required" As I told before unfortunately I have no PHP knowledge and i need a kind help to make it true. Thank you all. 0 Quote Link to comment Share on other sites More sharing options...
saab Posted September 12, 2009 Author Share Posted September 12, 2009 Is there any idea about this? 0 Quote Link to comment Share on other sites More sharing options...
saab Posted November 7, 2009 Author Share Posted November 7, 2009 (edited) Here I found the answer in this Topic: http://forum.whmcs.com/showthread.php?p=129793#post129793 In header.tpl of template and in the head aria replace css line by following code. {if $language eq 'Persian'} <link rel="stylesheet" type="text/css" href="templates/{$template}/style-rtl.css" /> {else} <link rel="stylesheet" type="text/css" href="templates/{$template}/style.css" /> {/if} Remember you must make the css compatible with RTL languages and name it as "style-rtl.css" then copy it into template directory. Thanks to Scolpy Edited November 7, 2009 by saab 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.