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 want develop a plugin that add boxes and menus in WordPress backed.

What I have to keep in mind to make it compatible with WordPress RTL installations?

Any idea or suggestion will be appreciated.

Thanks

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

You can use is_rtl() to check if the user is setup for RTL or not, then you would just need to register and enqueue the RTL styles instead of the LTR styles.

share|improve this answer
    
Thanks, when you mention RTL styles you mean the possible CSS styles I add in my plugin or you are referring to some other required CSS? If my plugin doesn't add any CSS because use WordPress default ones, I don't need to worry about compatibility with RTL installation? –  gsc-leticia Feb 2 '12 at 0:07
    
You will need to add the stylesheets, at the very least changing the direction of the text. Read the documentation that I linked in my answer. –  m0r7if3r Feb 2 '12 at 0:27
1  
Yes, I had already seen the link about is_rtl() function, but my question was: if I need to use it. You already reply this in last comment, thanks! –  gsc-leticia Feb 2 '12 at 14:54
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.