Exclude line of code in the home page

I’ve put this code in my theme.liquid file:
body {
direction: rtl;
text-align: right;
}
and I want it to apply everywhere except in the home page, I would like very much if someone can help me with that
Thanks in advance

store link: https://7c8266-b4.myshopify.com/

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 the following code above the tag

{% if template.name != 'index' %}

{% endif %}

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

Hi @Etay56 , You can try with this code:

{% unless template == 'index' %}
 
{% endunless %}

Hope this can help you

This is Noah from PageFly - Shopify Page Builder App

Hi @Etay56 Please add code here to fix it:

Step 1: Online Stores > Themes > Edit code

Step 2: Choose file theme.liquid
Step 3: Add code above the tag

{% unless template contains 'index' %}

{% endunless %}

Hope my solution will help you resolve the issue.

Best regards,

Noah | PageFly

Thats great but the problem is that when I move to another page in my site the header icons flips and everything rearranges in the header, maybe we can exclude this from the header fully as well?