How to Add Support for RTL to Layers (Right to Left Languages)
Layers is a free theme framework – we cannot include everything by default. We welcome community contributions if you would like to see RTL support via CSS or microfromats included in the Layers core.
Layers comes with Arabic and other RTL languages, but you must be running a WordPress site that explicitly uses that language set, or have language switching enabled which supports that language set. You can see which languages are included with Layers on About Layers.
Using an RTL language does not automatically enable RTL support in WordPress or the theme, as RTL is determined first by the user’s browser language. To test or force RTL in any browser, you must use a plugin such as RTL Tester, or ensure all content is right-aligned in your translations and translated widgets. You may also add RTL with CSS via a child theme.
Enabling RTL may break your Layers Slider and any other slider plugin that uses directional sliding. The following Custom CSS in the CSS panel or your child theme should solve it:
You may also simply set the Fade animation in the slider display options instead.
- Adding RTL support to the theme – (Use that with our Child Theme guide linked form the main menu here)
- WP-RTL will add directional switching for content only OR
- RTL Tester will switch direction for the entire site
If the language you are choosing is not included in Layers, you can translate the theme. See How to Translate Layers and How to Translate Widgets or display different widgets per language
Did you know?
Our friends at Jetpack are doing some incredible work to improve the WordPress experience. Check out Jetpack and improve your site's security, speed and reliability.