Hey Kriesi Team,
> Our website has two languages: English and Persian (Farsi) – (as we are using WPML)
> Only in Persian version in Mobile mode, the top bar languages are not aligned in center. (please consider that this issue is happening in all the Persian pages except homepage):
Kind regards,
Sadegh
Hey Sadegh,
I added following code to bottom of Style.css file of your child theme
@media only screen and (max-width: 767px) {
.rtl #header_meta .sub_menu {
right: 0;
}}
Please review your website now
Best regards,
Yigit
Hey dear Yigit,
Thanks a lot for your code.
However, although it solved the problem in RTL version in Mobile mode, but
1> in Tablet mode there is a gap appeared now in RTL pages (it wasn’t there before the code):
2> in RTL Home page, the texts gets backed again to their non-aligned positions in Mobile mode (it was right before the code):
Kind regards :)
Sadegh
Hi,
I added following code to bottom of Style.css file as well
@media only screen and (max-width: 767px) {
.rtl.home #header_meta .sub_menu {
right: 30%;
}}
please review your website now
Best regards,
Yigit
Hey dear Yigit,
The problem with the white gap is still not solved:
Kind regards,
Sadegh
Hi!
Following code is causing the issue
@media only screen and (max-width: 989px) {
#header_meta {
margin-bottom: 30px;
}}
Why did you add it? If that is only RTL issue, please try adding following code to Quick CSS
@media only screen and (max-width: 989px) {
.rtl #header_meta {
margin-bottom: 0;
}}
Regards,
Yigit
Hey Yigit,
I don’t know actually why this code is there, maybe to solve some issues with the header.
However, thank you very much for the solution, it all worked great :)
Cheers,
Sadegh
(you may now close the thread please)