[Resolved] RTL mode in categories

Home Forums Support [Resolved] RTL mode in categories

Home Forums Support RTL mode in categories

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1033185
    Hassan

    Hi,
    I use my site in two languages ​​(French and Arabic), just i want the articles in Arabic to appear correctly in the categories (I mean right-to-left alignment / RTL mode). Example of the error : Screenshot

    Thank you.

    #1033544
    Leo
    Staff
    Customer Support

    Hi there,

    Try this CSS:

    .archive.category.category-592043693 h2.entry-header, .archive.category.category-592043693  .entry-summary {
        text-align: right;
    }

    Adding CSS: https://docs.generatepress.com/article/adding-css/

    Let me know if this helps πŸ™‚

    #1033782
    Hassan

    Hi Leo,
    Thank you for your reply.
    But this code align text of all articles in Arabic alphabet and latin alphabet to the right.

    I just want align articles in Arabic alphabet on categories to the right / RTL mode.

    Thanks.

    #1033798
    Leo
    Staff
    Customer Support

    Can you try the edited code?
    https://generatepress.com/forums/topic/rtl-mode-in-categories/#post-1033544

    Let me know πŸ™‚

    #1033833
    Hassan

    The same problem. I think the solution requires a change in the RTL style sheet file (rtl.css).

    #1033844
    Leo
    Staff
    Customer Support

    Sorry I’m little confused.

    You are referring to the page you’ve linked right?

    Is the WordPress language setting set to RTL?

    I don’t believe so from looking at the code.

    Let me know πŸ™‚

    #1034096
    Hassan

    Hi leo,

    I apologize in advance for my English.

    If i set WordPress language to RTL mode, articles in Arabic alphabet appear correctly in categories (right-to-left), but articles in Latin alphabet will not be displayed correctly (left-to-right) .. and vice versa.

    Articles in arabic and latin alphabetic are mixet in some categorie : http://www.cdicdd.com/page16

    Categories show only articles arabic : http://www.cdicdd.com/Ψ¨Ψ§Ω„Ψ―Ψ§Ψ±ΩŠΨ¬Ψ©

    Default Categories view mode (Left-to-right) : http://www.cdicdd.com

    So, i want keep WordPress language in English/Frensh, and i want if are article articles in Latin alphabet should keep in like this (Left-to-right), and if are articles in Arabic alphabet should be showing correctly (right-to-left) in categories.

    #1034400
    Leo
    Staff
    Customer Support

    So just to make it clear, you want to make all category pages RTL?

    That’s exactly what my code above should do:
    https://generatepress.com/forums/topic/rtl-mode-in-categories/#post-1033544

    If that doesn’t work, we’d have to target each category one by one.

    #1034551
    Hassan

    To be clear, i have multi language website :

    – Articles in French / English are correctly displayed in category (Default mode: Left to right).

    – Articles in Arabic are not displayed correctly in category (RTL mode: Right on the left).

    So, how to display articles in Arabic correctly in category (RTL mode) without effect on articles in French / English in category (Default mode: Left to right)?

    If this is not possible, I would like to target this category in RTL MODE.

    #1034572
    Leo
    Staff
    Customer Support

    Without an RTL language setting, it’s impossible for WordPress to tell whether the content is an RTL language or not.

    We can certainly target the code for that one category:
    https://generatepress.com/forums/topic/rtl-mode-in-categories/#post-1033544

    Let me know πŸ™‚

    #1034598
    Hassan

    Thanks a lot for your help LEO.

    #1034673
    Leo
    Staff
    Customer Support

    No problem πŸ™‚

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.