Skip to content
FunnelGuard

Fix guide by FunnelsGuard

RTL layout broken: fix Arabic and Hebrew pages showing left-to-right

PRF-364Medium impactCould addBy FunnelGuardPublished Updated
On this page

What this issue is

Arabic, Hebrew, Persian and Urdu are read from right to left. A page in one of these languages should flow from the right edge: text aligns right, menus start on the right, and progress steps and arrows point left. The browser only does this if the page says so with the dir attribute on the <html> tag.

The issue appears when a translated page keeps the left-to-right (LTR) layout. Common forms: the text is right-aligned but the menu, icons and form labels are not; punctuation lands at the wrong end of a sentence; numbers and brand names scramble; or the whole page is mirrored in some places and not in others.

Why it costs you leads or sales

A page that looks wrong feels untrustworthy to a native reader, and the damage goes beyond looks. Labels sit on the wrong side of fields, placeholder text collides with icons, a "Next" arrow points backwards, and a sticky button can cover the field a person is filling in. People abandon forms and checkouts they cannot read comfortably.

Where an RTL visitor drops out
  1. Arabic landing pageLoads, text looks mostly fine
  2. Lead formLabels and icons on the wrong side, email field typed backwards
  3. SubmitVisitor gives up or mistypes
  4. Thank-you page and trackingNever reached

A broken RTL layout usually hurts most at the form, where reading order matters.

Form completion by page directionExample numbers
Form completion by page direction (example)English form: 12 %; Arabic form, layout broken: 5 %; Arabic form, fixed: 11 %05912511English formArabic form, layout b…Arabic form, fixed%

Example: illustrative numbers showing how a broken RTL form could lower completion compared with a correct one.

How to check if your site has it

Quick RTL check
  1. Open the translated page

    Load the Arabic, Hebrew, Persian or Urdu version in a normal browser window.

  2. Inspect the html tag

    Right-click, choose Inspect, and look at the <html> element. You want lang="ar" dir="rtl" (or he, fa, ur). If dir is missing or says ltr, that is the cause.

  3. Compare against the original

    The header, menu, icons, sliders and breadcrumbs should be mirrored. Arrows and progress steps should point left.

  4. Test the form and checkout

    Type an email and phone number, check where labels, errors and icons appear, and walk through every step on a phone as well as desktop.

  5. Test mixed content

    Check lines that mix Arabic or Hebrew with Latin words, numbers or prices, and make sure punctuation ends up on the correct side.

How to fix it

The fix has two parts: tell the browser the page is RTL, then make your CSS follow the direction instead of hard-coding left and right.

Set the direction on your platform
  1. Set the site language

    Under Settings > General, set Site Language to the RTL language. WordPress then adds dir="rtl" and loads rtl.css from themes that support it.

  2. Multilingual plugins

    If you use a translation plugin, confirm the RTL language is registered with the correct locale (for example ar or he_IL) so the direction is applied per language.

  3. Check your theme

    If the layout is still wrong, your theme may lack RTL styles. Ask the theme author or add an rtl.css file in a child theme.

Set language and direction on the html taghtml
<html lang="ar" dir="rtl">
Shopify theme.liquid: direction from localeliquid
{% assign rtl_langs = 'ar,he,fa,ur' | split: ',' %}
<html lang="{{ request.locale.iso_code }}" dir="{% if rtl_langs contains request.locale.language %}rtl{% else %}ltr{% endif %}">
Use logical properties instead of left/rightcss
/* Before */
.card { margin-left: 16px; text-align: left; padding-right: 8px; }

/* After: follows the page direction */
.card { margin-inline-start: 16px; text-align: start; padding-inline-end: 8px; }

/* Flip directional icons such as arrows */
[dir="rtl"] .icon-arrow { transform: scaleX(-1); }

/* Keep emails, phone numbers and URLs readable in inputs */
input[type="email"], input[type="tel"], input[type="url"] { direction: ltr; text-align: start; }
RTL form before and after

Broken

  • No dir attribute, page treated as LTR
  • Labels sit on the left of right-aligned text
  • Arrow points the wrong way
  • Placeholder overlaps the icon

Fixed

  • lang and dir=rtl set on the html tag
  • Labels, icons and buttons mirrored
  • Arrows flipped
  • Email and phone inputs stay LTR for typing

How to confirm it's fixed

RTL verification
  • The html tag shows the correct lang and dir="rtl"
  • Menu, logo and icons are mirrored as expected
  • Form labels, errors and placeholders sit on the right side
  • Email and phone fields accept typing without scrambled characters
  • Arrows, sliders and progress steps point the right way
  • Prices, dates and Latin words inside Arabic or Hebrew text display correctly
  • The submit button works and the thank-you page loads
  • Checked on a real phone and at least two browsers

How to prevent it happening again

RTL breaks again when new sections, plugins or theme updates add hard-coded left/right styles. Build habits that catch it early.

Prevention habits
  • Write new CSS with logical properties (margin-inline-start, text-align: start)
  • Add the RTL version of key pages to your release checklist
  • Re-test forms and checkout in RTL after theme, plugin or builder updates
  • Ask a native speaker to review layout and wording before launch
  • Keep a list of the RTL pages and forms that matter most for leads

How FunnelGuard handles this

FunnelGuard does not check for RTL layout problems today. It is a possible future check, so right now you need to review RTL pages yourself.

What FunnelGuard does cover nearby: a robot visitor runs your real journeys on a schedule, such as a lead form or checkout, and checks each step, the tracking hits sent to ad and analytics platforms, and whether test leads reach your inbox and CRM. If you point a journey at your Arabic or Hebrew page, a layout that stops the form from submitting, for example a button that cannot be clicked, would show up as a failed step. It will not tell you that the layout merely looks mirrored wrongly. You can start on the Free plan (1 site, 2 journeys, daily checks, no card).

To watch for the layout issue itself, use the manual checklist above after each release, and browser developer tools to preview the page on different devices. Consider asking a native speaker to review the page at regular intervals.

Questions people ask

Why is my Arabic page showing left-to-right?

The page is most likely missing dir="rtl" on the <html> tag, or your theme has no RTL styles. Inspect the html element in your browser, and set the direction through your platform's language settings or in the theme code.

How do I make my website right-to-left?

Add dir="rtl" and the correct lang (such as ar or he) to the html tag of the translated pages. Then use CSS logical properties like margin-inline-start so spacing and alignment flip automatically.

What is the difference between text-align right and dir rtl?

text-align: right only moves the text. dir="rtl" changes the reading direction, which also affects punctuation placement, the order of inline items, flex and grid layout, and form behaviour.

Why are my email and phone fields scrambled on an RTL page?

Email addresses and phone numbers are written left to right, so inside an RTL context characters can appear reordered. Set direction: ltr on those inputs and keep the labels RTL.

Does WordPress support RTL languages?

Yes. When the Site Language is an RTL language, WordPress sets the direction and loads rtl.css from themes that include it. If your theme has no RTL styles, you need a different theme or a child theme with an rtl.css file.

Do I need to flip every icon on an RTL site?

No. Flip icons that show direction, such as arrows, back buttons and progress indicators. Do not flip logos, clocks, checkmarks or media controls that follow universal conventions.

Can FunnelGuard detect broken RTL layouts?

No, FunnelGuard does not check RTL layout today. It can run a journey on your RTL page and flag a failed step, such as a form that can't be submitted, but not a layout that is only visually wrong.

Does FunnelGuard catch this?

Could add

Not checked yet: could be added to FunnelGuard.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.