Language support for RTL and LTR for my theme

Sultan12345
Visitor
1 0 0

I purchased a theme that does show either LTR or RTL. not both at the same time. I am using Arabic and English in the same website.

 

I want to use both Arabic (RTL) and English (LTR) languages. 

 

code for language I found in the purchased theme: (also check attached photo)

<!--[if IE 9]> <html class="ie9 no-js supports-no-cookies" lang="{{ shop.locale }}"{% if settings.layout_enable_rtl %} dir="rtl"{% endif %}> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html class="no-js supports-no-cookies" lang="{{ shop.locale }}"{% if settings.layout_enable_rtl %} dir="rtl"{% endif %}> <!--<![endif]-->

 

I don't know coding but I can do simple instructions. 

I looked into the community and found different codes that did work but with issues like below one:

{%- 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 -%}>

Thanks

Reply 1 (1)

coderoflifeil
Visitor
1 0 0

have you found a theme that supports both?

i am working on a theme now that has both, almost complete