• Hi,

    I am working on a EN / HE / AR website using WPGlubus.
    While doing some styling, I noticed selecting Hebrew gives the rtl class on the body element, but choosing Arabic does not.

    Where is this set?

    Arabic should also set RTL on body, as it is written right to left.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter quu

    (@quu)

    seems that installing Arabic as a system language solves this issue.
    Is this the only way to solve it? (Seems overkill)

    Moderator bcworkz

    (@bcworkz)

    There also needs to be a rtl attribute in the <html> tag. Both html and body tag attributes are theme dependent, but most themes use language_attributes() and body_class() functions to output attributes. Each has a filter by the same name through which we can alter what is output.

    There doesn’t need to be a rtl body class per se, but that would be an easy way to ensure that the CSS direction rule is properly applied. In any case, I’d expect the multilingual plugin to properly manage that. Unless it’s assuming you’d install the related system language. It’d be something to inquire about through their dedicated support channel.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘rtl body tag missing on Arabic’ is closed to new replies.