Re: Right to Left text alignment

Right to Left text alignment

Manager2020
Tourist
20 0 2

I am using the Translate and Adapt app with Origin theme to translate my theme to Arabic, however, The theme layout is still not adapted, and there are some parts are still not converted "Right to Left", like the "Image with Text" for example.

Replies 5 (5)

AnneLuo
Shopify Partner
1291 227 262

You can try this code by following these steps:
Step 1: Go to the online store ->Theme ->Edit Code.
Step 2: Find the theme.liquid file and add dir='rtl' here

 

AnneLuo_0-1713960100895.png

 

Hopefully it will help you. If yes then Please don't forget hit Like and Mark it as solution!

If this is helpful, please Like and Accept the solution.
Want to modify or custom changes on store? Let me help.
- Feel free to Email Me   

Buy Me A Coffee

Manager2020
Tourist
20 0 2

ok, but then the English version will change also. 

I want to keep the LTR for English, but change to RTL for Arabic.

Alomrani
Visitor
2 0 0

Did you ever find the solution ? I have the same issue.

BD-Marketing
Shopify Partner
1 0 0

Did u have any answers please?

erik_lindberg_s
Shopify Partner
20 3 7

Try something like this.

 

{%- if shop.locale == 'ar' -%}
<html class="no-js" lang="{{ request.locale.iso_code }}" dir="rtl">
{%- else -%}
<html class="no-js" lang="{{ request.locale.iso_code }}">
{%- endif -%}