- This topic has 11 replies, 2 voices, and was last updated 4 years, 5 months ago by Leo.
-
AuthorPosts
-
October 12, 2019 at 6:44 pm #1033185Hassan
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 : ScreenshotThank you.
October 13, 2019 at 8:56 am #1033544LeoStaffCustomer SupportHi 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 π
October 13, 2019 at 4:25 pm #1033782HassanHi 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.
October 13, 2019 at 5:25 pm #1033798LeoStaffCustomer SupportCan you try the edited code?
https://generatepress.com/forums/topic/rtl-mode-in-categories/#post-1033544Let me know π
October 13, 2019 at 7:01 pm #1033833HassanThe same problem. I think the solution requires a change in the RTL style sheet file (rtl.css).
October 13, 2019 at 7:37 pm #1033844LeoStaffCustomer SupportSorry 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 π
October 14, 2019 at 5:32 am #1034096HassanHi 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.
October 14, 2019 at 9:06 am #1034400LeoStaffCustomer SupportSo 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-1033544If that doesn’t work, we’d have to target each category one by one.
October 14, 2019 at 12:31 pm #1034551HassanTo 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.
October 14, 2019 at 1:18 pm #1034572LeoStaffCustomer SupportWithout 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-1033544Let me know π
October 14, 2019 at 2:24 pm #1034598HassanThanks a lot for your help LEO.
October 14, 2019 at 5:30 pm #1034673LeoStaffCustomer SupportNo problem π
-
AuthorPosts
- You must be logged in to reply to this topic.