Jump to content
The Krotek Support Forum
  • Sign Up
mostafa

Add a Feature to "CUSTOM CSS" plugin?

Recommended Posts

Hello,

First of all, I want to thank you for this great and useful plugin!

I need a feature that maybe will use by others too : 

In RTL languages like Arabic or Persian, there is a method "isRtl" in Joomla that detect Direction of template : 

https://api.joomla.org/cms-3/classes/JLanguage.html#method_isRtl


Is it possible that (like the attachment) we have a rule for loading the CSS file : " Load CSS If RTL"?

I can add this feature myself but in next updates!?
Thank you in advance.

rtl.jpg

Share this post


Link to post
Share on other sites

You can try to check for "rtl" page class or direction right in your CSS. Something like that:

body[class="rtl"],
body[style*="direction:rtl"] {

/* RTL definitions */

}

 

Share this post


Link to post
Share on other sites

Look for another distinctive selector. Add it manually in your template. Add it with JavaScript. There're tons of ways to add the selector and use it in your CSS.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×