RTL
how can I RTL my community? which class I need to target to change the layout from right to left? ( I dont want to change the language in the backend )
Mohamed Abu BakerΒ You can enable RTL layout in your community by using this filter hook:
add_filter('fluent_community/is_rtl', function ($isRtl) {
Β Β return true;
}, 10, 1);
Raiyan MarzanΒ when doing this hook my site become missed up like this :
Mohamed Abu BakerΒ It seems rlt file is missing in the beta you are using. Please check the response in your support ticket.
Salam @Mohamed Abu Baker
To get your community in RTL, you need to do two things:
- Put WP in Arabic or any RTL language you want (in Settings, language).
- Translate the fluent community plugin to Arabic or the language you want, and to achieve that use Loco Translate plugin.
That's it.
I've been translating my community to Arabic (almost done) and it works very well.
Let me know if you need more clarifications.
Cheers.