cancel
Showing results for 
Search instead for 
Did you mean: 

Want to add RTL support for my custom magento 2 theme

Want to add RTL support for my custom magento 2 theme

I am using a custom Magento theme, I want to add two views in it one is English and another one is Arabic.

I have already translated the page content to Arabic for Arabic view but I want to show the content in right to left format (RTL) and I am not getting any way to do it so please help me to get RTL support for my theme.

3 REPLIES 3

Re: Want to add RTL support for my custom magento 2 theme

Hi @vishu_panke

 

For RTL - you need to create your custom theme first.

 

Then that custom theme you need to assign to your Arabic store view.

 

in that custom theme 's css you need to mention like direction : rtl

 

Also for that store  you need to load your arabic locale option - as you have already translated it so , you need to load that locale for Arabic store.

 

Refer this link for more details - https://magento.stackexchange.com/questions/130749/how-to-overriding-style-for-multilingual-with-rtl...

 

 

 

if issue solved,Click Kudos & Accept as Solution

Re: Want to add RTL support for my custom magento 2 theme

Do I need to create 2 themes one for English store and one for Arabic store
or it is possible in one theme only?

Re: Want to add RTL support for my custom magento 2 theme

Hi @vishu_panke

 

Yes , if you needed RTL support in your second store , you must need to create another theme for Arabic store.

 

So create one theme for English store and another second one theme for Arabic.

if issue solved,Click Kudos & Accept as Solution