• Resolved anheco

    (@anheco)


    I’m using the shortcode on my website.

    I’ve placed one shortcode on the desktop version : everything works well.

    On my smartphone version, the shortcode is placed in a widget located in the mobile menu.

    The mobile menu is a Elementor Modal which open on a button click.

    The layout of the widget renders well but nothing happens when I click to change language. Although I don’t seem to have any JS error in the console.

    Do you have any idea how to fix this?

    Thanks!

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter anheco

    (@anheco)

    Plugin Author edo888

    (@edo888)

    Hi,

    I have checked and I see that the onclick event is missing on the language selector elements inside the mobile menu.

    This usually happens when the HTML code is being copied around, since in that case the events are not transferred. Most mobile menus are being derived from the desktop menu via javascript.

    For such cases we recommend consulting the theme/menu plugin developer or using our paid version, which does not depend on onclick events and will work even if the HTML is copied.

    Thanks! ??

    Thread Starter anheco

    (@anheco)

    Hi and thank you very much for taking the time to have a look at my issue !

    To clarify, the widget inside the mobile menu was added using the exact same shortcode as the one in the main desktop menu.

    The mobile menu is completely distinct from the main menu and is not auto generated.

    It’s a plain whole Elementor template that is being displayed as a modal when clicking the burger menu button.

    What onclick event do you see missing ?

    Because I don’t see any onclick attribute on the main language selector in the desktop version either.

    Maybe this is something I can add manually ?

    Thanks again for any hint to help making the widget work in the menu =)

    Plugin Author edo888

    (@edo888)

    Hi,

    It is not an onclick attribute, but an event attached to the element via javascript. If you inspect the click events on the language link elements in the browser console you will see GTranslate related event is missing in the popup.

    I can only offer you to use our paid version which will solve the issue for you: https://gtranslate.io/#pricing

    Thanks! ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Not changing language in Elementor Modal’ is closed to new replies.