RTL LTR Category condition

Hi
I have a bilingual site (Riyadhkey.com) I am having troubles after importing a single page, my English posts are not LTR.
Can I set a condition to set the direction to either LTR or RTL depending on categories, as I have different categories for ach language posts.
If yes, how please as I am new to this.

Regards

Hani

I have added a custom field to categories, Language radio button, with English and Arabic.
Nou I am trying to set the conditions to use rtl/ltr classes (withe direction:ltr/rtl; in css field, when I aply it no content is displayed in either language.
Please help.

I asked ChatGPT, and it gave me a code to add to function,php, it worked, adding to the body tag the direction class, now even my header is LTR :frowning:

problem is on your english category your html still has rtl

image

right now it looks fine btw seems everything is readable.

My main page is Arabic, English archive is RTL also, will change that.
My problem was with the english single post.