Enabling RTL Layouts
For languages that read from right to left (e.g., Arabic, Hebrew, Persian), the Directory WordPress Plugin supports RTL layouts to ensure proper alignment and styling.
Step 1: Enable RTL Support in WordPress
WordPress has built-in support for RTL languages. To enable RTL layouts:
Go to Settings > General in your WordPress dashboard.
Select a language that uses RTL (e.g., Arabic, Hebrew) as the site language.
WordPress will automatically apply RTL styling to your website.
Step 2: RTL Support in the DT Directory Plugin
The Directory WordPress Plugin automatically detects the RTL language and adjusts the layout of directory listings, search filters, maps, and other elements to support right-to-left text flow.
Text alignment: All text will align to the right, and elements will adjust accordingly.
Navigation and buttons: Menus, buttons, and forms will adjust to ensure that they are user-friendly in RTL languages.
Step 3: Customizing RTL Layouts (Optional)
You may need to make additional adjustments for better RTL support. Use Custom CSS to fine-tune the design for RTL layouts:
body[dir="rtl"] .dt-directory-listing { text-align: right; }
This CSS rule ensures that listings are aligned correctly in RTL mode.
💡 Tip: Always check your site’s appearance in both RTL and LTR modes to ensure a consistent and professional look.
Last updated