Okay
  Public Ticket #1556209
Posts overview: translation of lazyloaded posts is the default one
Closed

Comments

  •  1
    Fronius1 started the conversation

    Scenario:

    • A normal website user is viewing the startpage or category pages in a non default language
    • Scrolls down so that older posts are being lazyloaded
    • The older posts appear, but are in the default language (German) and not in the currently selected language (English)


    Translation is done via WPML.

    The theme is the most current on 2.3.3

    If I'm logged into the Wordpress backend the issue is not there.


    Please let me know if you need anything else.


    Kind regards,
    David

  • [deleted] replied

    Hi David,

    Can you please share your Wordpress and FTP credentials here, because I need to login to your site and test your issue. Your information is safe here (private) in this thread.

    To include your credentials click Insert Credentials button in editor toolbar. (See how)

    Have a great weekend!

  •   Fronius1 replied privately
  • [deleted] replied

    Hi David,

    I have added this code in Theme Options > Footer > JavaScript > Footer JavaScript:

    <script>
    jQuery( document ).on( 'kalium-infinite-scroll-ajax-request-data', function( ev, ajaxData ) {
    ajaxData.lang = icl_language_code;
    } );
    </script>

    And the problem got fixed. I will take a closer look and implement a fix in the future updates, however you can keep this JS snippet for your site to work properly.

  •  1
    Fronius1 replied

    Hi Arlind,

    thanks for your support. Yes it now works just as expected.


    Just wanted to let you know that the issue mentioned in ticket #1274778 still is happening with every theme-update. 
    --> That means every update breaks the "next"/"prev" functionality for me. 
    --> I still have to apply your code snippet over there after every update by hand.

    Is there any plan to also add this snippet for future updates?


    Kind regards,
    David

  • [deleted] replied

    Hi David,

    Yes the code snippet is added in main theme files so you don't need to worry about it in the upcoming updates.

    Thank you very much for reporting this.