Okay
  Public Ticket #2992736
Polylang and Studio Theme issues
Closed

Comments

  • George vass started the conversation

    Hello Dear support Team!

    I am doing my site's translations and I am working on the header translation.

    Now on the elementor editor I have added a language switcher flag.

    The issue is 1 I cannot set a different header template for another language.

    and the second issue is that when using one header and switching between language as you can see in my website the header does not change to the translated one. The whole main page switches in to the translated page but the header stays the same. If you refresh though it switches to the translated header. To explain better: (Greek page - Greek header), i click the English flag on header (English page - Greek header) I hit refresh (English Page - English header) now this issue happens on both languages.

    Any ideas why it does that? The theme won't let me use two separate headers so I have to use one and change the main menu items which is fine if it worked properly.


    Thanks in advance for your help!

    -George

  • George vass replied

    Hello Support team!

    After some testing the issue occurs on the smooth page navigation.

    When you click a header link and you go to another page it doesn't refresh the browser but smoothly transitions which is great! but this is not good for the language switch.

    I think the header must be updated by force and reloaded for the English header version to show with out refreshing.

    I think you need to add this to the next update as smooth refresh elements on off (header, footer, whole site, specific pages etc)

    Thanks,

    George.

  •  665
    Alexandre replied

    Hi George, 
    Please go to wp-admin>theme options>custom css/js
    And add this code in the custom JS field (not the custom css field)


    $('.cpel-switcher__lang a').addClass('no-ajax');

    Thanks,


    Alexandre from the Sonaar.io Crew

  • George vass replied

    Hi Alexandre,

    I just copied the code and the problem was gone!

    Thanks for your help once more and for the custom solution.

    Many thanks,

    -George


  •  665
    Alexandre replied

    You are welcome

    Thanks,


    Alexandre from the Sonaar.io Crew