Muslim institutes today rarely serve one country or one language. A madrasa, an online academy or a Trust may have Arabic-speaking families in the Gulf, Urdu-speaking parents in India, and English-speaking students in the UK or Australia, all using the same website. A site that only translates its words, without changing its direction, fails part of that audience before they read a single sentence.
This guide explains what an RTL website is, how to make one step by step, the best practices and mistakes that matter most, and how to plan a bilingual Arabic-English (or Urdu-English) site on WordPress. It is written for institute founders, administrators and anyone briefing a web developer.
What is an RTL website?
RTL stands for right-to-left. Most websites are written in left-to-right (LTR) languages such as English, so their layout assumes the eye starts at the top-left. Arabic, Urdu, Persian, Pashto and Hebrew are read from the right, so a page in those languages should start at the top-right: the logo, the menu, the text and even the order of steps in a form.
When people search for "RTL meaning in website" or "what is RTL website", this is the answer: RTL is a direction setting that changes how the whole interface flows, not just the text. In code, it is controlled mainly by the dir="rtl" attribute and by CSS that respects direction.
For Islamic institutes, RTL matters because Arabic is the language of the Quran and of much of the Muslim world's religious study, and Urdu is the working language of countless madrasas and communities in South Asia. Those readers notice immediately when a site was built for them and when it was only adapted.
Translation is not the same as RTL design
Many "bilingual" Islamic websites are really one design with two sets of text. The English version is built properly, and the Arabic version is the same layout with Arabic words pasted in, still reading left to right. To a native Arabic reader, this feels immediately foreign, like a mirror image that was never actually flipped.
Genuine RTL design means the whole interface reverses direction for Arabic: the logo may move to the right, the menu order reverses, icons that imply direction (arrows, "next" buttons) flip, and text aligns to the right. The Arabic visitor should feel like the site was built for them, not adapted for them.
See the difference: LTR vs RTL layout
A simple header, shown both ways:
Notice the menu order reverses, the button text aligns right, and even the arrow direction flips. This is the level of detail proper RTL design requires, not just swapping the words.
What actually changes in RTL design
| Element | English (LTR) | Arabic / Urdu (RTL) |
|---|---|---|
| Text alignment | Left-aligned | Right-aligned |
| Logo position | Usually left | Usually right |
| Menu order | Reads left to right | Reverses to read right to left |
| Icons with direction | Arrow points right for "next" | Arrow points left for "next" |
| Forms | Labels left of field | Labels right of field |
| Sliders, steppers, progress bars | Progress fills left to right | Progress fills right to left |
| Numbers, phone numbers, Latin words | Left to right | Stay left to right even inside RTL text |
| Logos, photos, play buttons | As designed | Not mirrored |
The last two rows surprise people. Arabic script flows right to left, but numerals and Latin words inside Arabic text are still read left to right, and a logo or a photograph should never be flipped. A good RTL build handles this properly rather than reversing everything blindly.
How to make an RTL website: step by step
Whether you are briefing a developer or building it yourself, these are the steps in order.
Step 1. Declare the language and direction
Tell the browser what the page is. For an Arabic page, the root element should carry both language and direction. For an Urdu page, use ur.
<html lang="ar" dir="rtl">
<!-- A single RTL section inside an English page -->
<section lang="ur" dir="rtl"> ... </section>Without dir="rtl", punctuation lands on the wrong side of sentences and flexbox and grid layouts do not flip by themselves. Without a correct lang, search engines and screen readers cannot tell which language they are dealing with.
Step 2. Write CSS with logical properties
Old CSS uses physical directions (left, right). Modern CSS uses logical ones (start, end) that follow the page direction automatically, so one stylesheet works for both languages.
/* Physical (breaks in RTL) */
.card { margin-left: 16px; padding-right: 24px; text-align: left; }
/* Logical (works in LTR and RTL) */
.card {
margin-inline-start: 16px;
padding-inline-end: 24px;
text-align: start;
border-inline-start: 4px solid #0f5c4d;
}Step 3. Let flexbox and grid do the flipping
Flexbox rows and CSS grid follow the page direction, so a menu built with display:flex reverses on its own once dir="rtl" is set. Avoid positioning things with fixed left: and right: values; use inset-inline-start and inset-inline-end instead.
Step 4. Flip directional icons only
Arrows, chevrons, "back" and "next" icons, and breadcrumb separators should point the other way in RTL. Everything else (logos, photos, a clock, a play button) should stay as it is.
[dir="rtl"] .icon-arrow,
[dir="rtl"] .icon-chevron { transform: scaleX(-1); }Step 5. Protect numbers, phone numbers and mixed text
When Arabic or Urdu text contains an English name, a phone number or a course code, wrap it so it keeps its own direction and does not scramble the sentence.
<p>للتواصل: <span dir="ltr">+00 000 000 0000</span></p>
<!-- Names typed by users (student names, comments) -->
<bdi>Muhammad Ahmed</bdi>Step 6. Choose and load a real Arabic or Urdu font
Use a typeface designed for the script (see the typography section below) and test it at the real sizes of your headings, body text and buttons.
Step 7. Test on a real phone, in both directions
Open every key page in both languages on mobile: the menu, the enquiry form, the admission form, the donation page. Most RTL bugs only show up on a small screen.
RTL website design best practices
- Design the layout for RTL, do not just mirror it. Start from how an Arabic reader scans a page: top-right first. Place the most important call to action where their eye lands.
- Use one codebase with logical CSS properties. Maintaining separate left and right stylesheets doubles the chance of bugs.
- Mirror only what is directional. Navigation, progress, arrows and layout order flip. Logos, photos, charts with real-world meaning, and media controls do not.
- Keep numbers and Latin text left-to-right inside RTL paragraphs, and wrap them where the browser might scramble the order.
- Give Arabic and Urdu more line height. Arabic needs a little more vertical room than English; Urdu in Nastaliq style needs noticeably more.
- Write content per language. Calls to action, headings and religious terms read better when written naturally than when translated word for word.
- Put a language switcher on every page, in a predictable place, labelled in each language's own name (العربية, اردو, English).
- Do not auto-redirect users by browser language. Suggest a language, but let the visitor choose. A Gulf visitor may still prefer the English page.
- Handle form fields carefully. Name, email and phone fields are often typed in English even on an Arabic page, so set their direction deliberately.
- Treat Quranic text with care. Quranic verses need a proper Uthmani-script font and must be copied from a reliable source, never retyped or altered. Have a qualified person check the final page.
Arabic and Urdu typography done properly
Arabic letters connect to each other and change shape depending on their position in a word. A font that was not built for Arabic can break these connections, making text harder to read or simply look wrong.
- Arabic body text: Naskh-style fonts read comfortably. Noto Naskh Arabic and Amiri are free options on Google Fonts. Cairo and Tajawal are cleaner, modern sans-serif choices suited to headings and interfaces.
- Urdu: Urdu readers expect Nastaliq. Noto Nastaliq Urdu is a free option. Nastaliq is tall and sloping, so it needs generous line height and slightly larger size than Arabic Naskh to stay readable.
- Line height: give Arabic roughly 1.8 to 2.0 and Urdu Nastaliq more, then adjust by eye.
- Line length: keep paragraph width similar to English for readability, not wider just to fill space.
- Numerals: decide whether the site uses Western digits (0-9) or Arabic-Indic digits, and stay consistent across pages, forms and prices.
- Test headings at actual size: some display fonts look elegant large but lose clarity at smaller sizes.
Common mistakes in Arabic-English websites
- Pasting Arabic into an English template. The layout stays left-to-right, so Arabic text feels bolted on rather than designed for.
- Using a generic font for Arabic. Latin fonts often render Arabic script poorly or without proper letter connections. Arabic needs a font built for it.
- Word-for-word translation. Some phrases, especially calls to action and religious terminology, need to be written naturally in each language rather than translated literally.
- Flipping everything, including logos and photos. Mirroring should be selective.
- Forgetting mobile RTL. A site can look fine in RTL on desktop and still break on a phone if the mobile menu wasn't tested separately.
- Scrambled phone numbers and mixed text. Numbers and English names inside Arabic sentences move to the wrong place when they are not isolated.
- No clear language switcher. Visitors should be able to find and change language in one click, from any page, not just the home page.
Building an RTL website on WordPress and Elementor
WordPress has built-in RTL support at the core level. When the site language or a page's language is an RTL language, WordPress loads right-to-left stylesheets, and a well-built theme should switch direction automatically without custom CSS for every page.
For a single-language Arabic or Urdu site: set the Site Language in Settings → General to the right language, choose a theme that is declared RTL-ready, and test.
For a bilingual site: you also need a way to keep the two languages separate and let visitors switch. This is usually done with a multilingual plugin (Polylang, WPML, TranslatePress and Weglot are common options). Each language gets its own URLs, and the direction follows the language of the page being viewed.
For institutes with real bilingual content, we generally recommend Elementor combined with a proper RTL-ready theme, so admins can keep editing both versions later without needing a developer for every small change.
What we've learned building these: the difference between a translated site and a true bilingual site shows up in the small things, such as a "Register Now" button that reads naturally in Arabic rather than as a stiff translation, or a biography that flows the way Arabic biographies are normally written, not the English structure with Arabic words swapped in.
Choosing an RTL website builder: what to check
People searching for a "website builder with RTL support" are usually trying to answer one question: will this tool flip properly, or will I be fixing it by hand? Whatever platform you consider, run this test before you commit:
- Does it let you set a page or site to RTL per language, not just one direction for the whole site?
- Do menus, columns, forms and sliders flip, or only the text alignment?
- Can you choose a custom Arabic or Urdu font, and does it render connected letters correctly?
- Does the mobile menu work in RTL?
- Can you add custom CSS for the cases the builder does not handle?
- Does it create separate, indexable URLs per language and support
hreflang?
Build one real page (the home page or an admission form) in the trial version, switch it to Arabic, and judge the result on a phone. That ten-minute test tells you more than any feature list.
SEO for bilingual and RTL websites
- Use a separate URL for each language, for example
/ar/for Arabic. One URL that changes language with a cookie or a script is hard for search engines to index. - Add
hreflangtags so Google knows which page is the Arabic version of which English page. - Translate titles and meta descriptions, not just the page body.
- Keep
langanddircorrect on every page. - Link the language versions to each other so a visitor and a crawler can move between them.
<link rel="alternate" hreflang="en" href="https://example.com/page/" />
<link rel="alternate" hreflang="ar" href="https://example.com/ar/page/" />
<link rel="alternate" hreflang="x-default" href="https://example.com/page/" />Most multilingual plugins can generate these tags for you; check the page source to confirm they are present and correct.
RTL page examples: what good looks like
Instead of one screenshot, here are the four page types where RTL quality shows most for an Islamic institute:
Home page header
Logo on the right, menu reading right to left, language switcher always visible, and one clear call to action such as "استفسر الآن".
Course or class listing
Cards flow from the right, timetables and fees keep numbers left-to-right, and "view details" arrows point left.
Admission or enquiry form
Labels sit on the right of fields, the progress indicator fills right to left, and email and phone fields accept English input cleanly.
Donation page
Amount buttons, currency symbols and payment steps read naturally in Arabic, with numerals consistent from the first screen to the receipt.
If you want to see how this planning looks for a full institute site, our guide to bilingual Islamic website design covers the page structure around it.
RTL website checklist
| Check | Why it matters |
|---|---|
lang and dir set correctly on every page | Correct punctuation, indexing and screen-reader behaviour |
| Full layout mirrors in Arabic, not just text | Feels native rather than translated |
| Dedicated Arabic or Urdu font, tested at real sizes | Readability and a professional look |
| Only directional icons flipped; logos and photos untouched | Avoids a "mirrored" look |
| Numbers and phone numbers isolated and left-to-right | Prices, dates and contacts stay correct |
| Language switcher visible on every page | Visitors shouldn't hunt for it |
| Content written per language, not just translated | Natural tone, correct terminology |
| Separate URLs and hreflang for each language | Both versions can be found in search |
| Mobile tested in both directions separately | RTL bugs often only show on mobile |
| Forms and buttons reversed correctly | Enquiry and registration must work smoothly in both languages |
| Quranic text from a reliable source, in a proper font | Accuracy and respect for the text |
Designing for a worldwide Muslim audience
Islamic institutes today often teach students across Australia, the UK, the USA, Canada, the Gulf and South Asia from one online platform. A properly built Arabic-English site serves two audiences at once: Arabic-speaking families who trust content written in their own language, and English-speaking students and parents elsewhere who need the same clarity in English. Neither should feel like an afterthought.
This matters as much for an online academy as it does for a Trust or community masjid with an international donor base. If you are setting up the wider site structure around this, our guides on how to create a website for a madrasa and the madrasa website checklist cover the page-by-page planning, while this guide focuses on getting the bilingual layer right.
Related guides on our blog
Frequently asked questions
What is an RTL website?
An RTL (right-to-left) website is built so that its layout, text alignment, menus, forms and icons read from right to left, as Arabic, Urdu, Persian, Pashto and Hebrew do. It is set up with the dir="rtl" attribute and CSS that respects direction, so the whole interface flows correctly, not just the text.
Is RTL website design just translating the site into Arabic?
No. Translation changes the words; RTL design changes the direction of the whole interface. A translated page that still reads left to right feels foreign to an Arabic reader. A proper build mirrors the layout, uses an Arabic font, and keeps numbers and logos correct.
How do I make a website RTL?
Set lang and dir="rtl" on the page, write CSS with logical properties (start and end instead of left and right), flip only directional icons, isolate numbers and mixed-language text, use a proper Arabic or Urdu font, and test on mobile. On WordPress, set the language to an RTL language and use an RTL-ready theme.
Can WordPress handle a bilingual Arabic-English RTL website?
Yes. WordPress supports RTL at the core level. For a bilingual site you add a multilingual plugin so each language has its own URLs and the page direction follows the language being viewed. Elementor with an RTL-ready theme lets your team keep editing both versions.
What are the best practices for RTL website design?
Design the layout for RTL rather than just mirroring it, use logical CSS properties, flip only directional elements, keep numbers left-to-right, give Arabic and Urdu enough line height, write content separately for each language, keep a visible language switcher, and test on mobile in both directions.
Which font is best for an Arabic or Urdu website?
For Arabic body text, Naskh-style fonts such as Noto Naskh Arabic or Amiri read comfortably, while Cairo and Tajawal suit modern headings and interfaces. For Urdu, Nastaliq fonts such as Noto Nastaliq Urdu match what readers expect. Always test at real sizes on a phone.
Do I need separate content for the Arabic and English versions?
Ideally yes. Calls to action, headings, biographies and religious terms read better when written naturally in each language rather than translated word for word. Separate, well-written content also helps each version perform in search.
Will an Arabic-English website help an Islamic institute reach more students?
It can. A site that speaks to Arabic-speaking families in their own language and to English-speaking students in theirs removes a barrier for both audiences, which matters most for institutes teaching online across several countries.
Need a proper Arabic-English or Urdu-English website for your institute?
DeenWebWorks builds bilingual RTL/LTR WordPress websites for madrasas, masajid, Trusts and online Islamic academies serving students worldwide, with layouts genuinely designed for both languages rather than translated copies.
Talk to DeenWebWorks