Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I wanted to have a multi-language site. I installed qTranslate plugin.
It messed my admin panel even after deactivating qtranslate admin panel shows up in ltr. The admin language is unchanged though, it's Persian.

So I dug into problem and I found this stylesheet link in admin pages:

<link rel="stylesheet" href="http://www.example.com/wp-admin/load-styles.php?c=1&dir=ltr&load=admin-bar,wp-admin,buttons&ver=3.5.1" type="text/css" media="all">

As you can see the dir variable is ltr but it should be rtl. I edited the load-styles.php like this:

$rtl = 1; //( isset($_GET['dir']) && 'rtl' == $_GET['dir'] )

It solved the problem. But it's a hack not a fix. So I want to know is there a way to use rtl styles without this kind of hacking.
The odd thing is that I can't reproduce this problem with my local wp install.

share|improve this question

put on hold as off-topic by Mark Kaplun, Pieter Goosen, G. M., Johannes Pille, kaiser yesterday

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Your question should be specific to WordPress. Generic PHP/JS/HTML/CSS questions might be better asked at Stack Overflow or another appropriate site of the Stack Exchange network. Third party plugins and themes are off topic." – Mark Kaplun, Pieter Goosen, G. M., Johannes Pille, kaiser
If this question can be reworded to fit the rules in the help center, please edit the question.

This sounds like the qTranslate plugin didn't uninstall properly. Have you contacted the plugin vendor to discuss the issue with them as well? What did they say? If there is a problem with the plugin I'd say they deserve to know. –  hakre May 25 '13 at 12:47
No I didn't, I'll try to contact them. –  Koorosh Pasokhi May 25 '13 at 14:01