Before you ask please READ THIS

layout problems on LTR-RTL language changes

The header isn't refreshes on LTR-RTL language change of WPML plugin, so there are layout and text direction problems after language switch.

Link: http://new.millos.co.il/collections/ change language to Hebrew and you'll see the problem. After refresh of the page - the layout and text is ok.

Comments

  • AirAir
    Posts: 10,970
    Hello there:-)

    Works fine for me. What browser do you use?
    You can always switch off AJAX to make sure page will be reloaded http://apollo13.eu/docs/thirteen/#!/ajax_settings

    With kind regards.
  • edited January 2016 Posts: 14

    Hello )
    switching off AJAX isn't good option for me.
    the problem is on Chrome Version 47.0.2526.106 m
    Screenshots included .

    red marks - the problem after RTL > LTR switching


    normal:




    red marks - the problem after LTR > RTL switching


    normal:

    Eng_bug.png
    1349 x 657 - 892K
    Eng_ok.png
    1350 x 673 - 1M
    Heb_bug.png
    1347 x 670 - 1M
    Heb_ok.png
    1351 x 663 - 1M
    Post edited by graffx on
  • AirAir
    edited January 2016 Posts: 10,970
    graffx said: switching off AJAX isn't good option for me.
    Why? Only benefit of AJAX in our theme is non stop playing music on page reload. There is no other good points to have it on when you experience glitches. It will switch off only ajax on page reloads. Ajax on lazy load of album, or other not theme parts will be untouched. Read more: http://apollo13.eu/docs/thirteen/#!/ajax_settings

    Anyway by default changing language reloads page anyway, cause there is too much changes for just AJAX reload. In this case somehow link is not recognized properly and this produce issues. On your front page language switching works fine. I will check what can be wrong with pattern recognition.

    With kind regards.

    EDIT:
    OK I see where is exactly the issue, that language links are reloaded with AJAX. Now just have to solve it somehow and it will be ready to be added to update :-)
    Post edited by Air on
  • Posts: 12
    I have similar issue here , the menu should be on the right when I switch the language to Arabic , even if I try to save the configurations and make it on the right for specific page from the page itself it is not saving
  • AirAir
    Posts: 10,970
    Menu, or rather header, side is dependent of theme settings. Only text align should change when switching language to RTL. @jawabri I don't think you have same issue, and you should rather start your own topic.

    With kind regards.
  • Posts: 14
    Thanks for your reply.
    I switched AJAX off till the update and it's worked.

    But I have another question about RTL-LTR:
    What is the proper way to make RTL version with sidebar on the right and LTR version with sidebar on the left?
  • AirAir
    Posts: 10,970
    graffx said: I switched AJAX off till the update and it's worked.
    Update is already on ThemeForest, see change log http://www.apollo13.eu/themes_update/thirteen/index.html
    graffx said: What is the proper way to make RTL version with sidebar on the right and LTR version with sidebar on the left?
    You mean header? There is no way to do it currently as header side is decided across layout not per language.
    I can think of option to add setting for RTL languages that will overwrite default setting.

    With kind regards.
  • Posts: 14
    Thanks for update!
    >I can think of option to add setting for RTL languages that will overwrite default setting.
    Is this option you're mentioned will make the option for LTR RTL sidebar be in his place on each language? If so - it'll be great.
  • AirAir
    Posts: 10,970
    Yes it will be like this. Probably I will do it at beginning of next week, but if it will be earlier then I will reply here earlier.

    With kind regards.
  • Posts: 14
    I'll wait for update! Thank you for your support, I'm very appreciate it!
  • Posts: 14
    Hello Air
    Is it still in progress? I wait for that feature )
    Thanks!
  • AirAir
    Posts: 10,970
    Air said: I will do it at beginning of next week
    It is still beginning of week. I will respond here when it will be ready.

    With kind regards.

  • AirAir
    Posts: 10,970
    Option is added in today update. It is available on today update.

    With kind regards.
  • edited January 2016 Posts: 14
    Thanks for your work!
    But it failed to update via plugin and after manual update via FTP (delete-upload) i have this:
    Fatal error: Allowed memory size of 377487360 bytes exhausted (tried to allocate 81 bytes) in /mounted-storage/home126/sub026/sc74181-MKUZ/new/wp-includes/template.php on line 554

    http://new.millos.co.il/

    Please help ) The backend is ok.
    Post edited by graffx on
  • AirAir
    Posts: 10,970
    Please deactivate all plugins and try again. There is no big change in theme, only simple detection is language an RTL one. This shouldn't cause such big drama.

    I have just retested theme with WPML active and works fine for me.

    With kind regards.
  • Posts: 14
    All plugins deactivated (includes WPML), theme reinstalled, reset done to the settings of the theme.
    WP ver 4.4.1
    PHP 5.4

    Fatal error: Allowed memory size of 377487360 bytes exhausted (tried to allocate 1920 bytes) in /mounted-storage/home126/sub026/sc74181-MKUZ/new/wp-content/themes/thirteen/front-page.php on line 37
    http://new.millos.co.il/
  • AirAir
    Posts: 10,970
    What about default WordPress theme? Does it works normal?
  • AirAir
    Posts: 10,970
    Could you please send me temporary access to your WordPress and FTP so I could check there what is going on? Send it here on forum via private message(click on my nick, in top-right corner you will find option "Message"). In message please attach LINK to topic it applies to.

    By sending access to WordPress I mean:
    -create new ADMIN account with fake e-mail
    -set some password to this account
    -send me created login and password
  • Posts: 14
    done
  • AirAir
    Posts: 10,970
    It works now.
    For some reason your home page returned wrong name as its template name, and site landed in infinite loop. I have to resave your home page(Edit->Updatae) and now it returns proper name. Have you done some fancy import lately, cause this is only reason I can think of that could mess this. Anyway I will add protection for such case so it will never again go to infinite loop in such case.

    Thanks for help.

    With kind regards.
  • Posts: 33
    Hello! I have the same question as graffx "What is the proper way to make RTL version with sidebar on the right and LTR version with sidebar on the left?"
  • Posts: 14
    There are settings for that now in the latest version.
    Customizing ▸ Global Layout
    Header - Main Settings - Header variant on RTL languages
  • AirAir
    Posts: 10,970
    Thanks @graffx!
  • Posts: 33
    Thanks. But i don't have it. Can you please tell me how to check if i need to update the theme? I use the Therteen theme&
  • Posts: 33
    i see this. Not sure about it. would work only with hebrew variant?
    Screen Shot 2016-04-13 at 6.13.36 PM.png
    608 x 748 - 51K
  • AirAir
    Posts: 10,970
    levaslu said: But i don't have it. Can you please tell me how to check if i need to update the theme? I use the Therteen theme&
    Please update theme
    http://support.apollo13.eu/discussion/12/before-you-ask-read-this-#updates

    http://apollo13.eu/docs/thirteen/#!/installation_update_update_theme

    With kind regards.
  • Posts: 33
    I change to rigth there but it effect all languages.
Sign In or Register to comment.