Jump to content

RTL language


saab

Recommended Posts

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.

Link to comment
Share on other sites

  • 3 weeks later...
  • 1 month later...

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 by saab
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated