• Resolved walhai

    (@walhai)


    Hello, I use the [gtranslate] placeholder in my menu and it works great. But when I switch to the mobile view with the hamburger menu it does not appear (Show in menu is none). Using the dropdown or floating selector is not an option. I use the enfold theme.

    Maybe you can help me in any way.
    Thank you and best regards
    Barbara

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author edo888

    (@edo888)

    Hi,

    Please post your website address.

    Thanks! 🙂

    Plugin Author edo888

    (@edo888)

    Hi,

    I haven’t heard back from you.

    Feel free to reopen this topic when you have time.

    Thanks! 🙂

    Thread Starter walhai

    (@walhai)

    Sorry, I am late.

    I found a solution now, maybe it is interseting for somebody else:

    put this in the function:

    add_action(‘wp_footer’, function() {
    ?>
    <script>
    jQuery(function($){

    function moveGTranslate() {
    if ($(window).width() > 768) return;

    var targetLi = $(‘.menu-item-3651’); // Ziel-Menu-Punkt
    var gtrans = $(‘.gtranslate_wrapper’);

    // Nur verschieben, wenn beide vorhanden sind
    if (targetLi.length && gtrans.length && !targetLi.find(‘.gtranslate_wrapper’).length) {
    gtrans.appendTo(targetLi);
    }
    }

    // 1) Wiederholen bis GTranslate geladen ist
    var waitGT = setInterval(function(){
    if ($(‘.gtranslate_wrapper’).length) {
    clearInterval(waitGT);
    moveGTranslate();
    }
    }, 300);

    // 2) Wenn Burger-Menü geöffnet wird
    $(document).on(‘click’, ‘.av-hamburger’, function(){
    setTimeout(moveGTranslate, 200);
    });

    // 3) Bei Resize (z. B. Rotation)
    $(window).on(‘resize’, function(){
    setTimeout(moveGTranslate, 150);
    });

    });
    </script>
    <?php
    }, 999);

    This is the website: https://www.husky-touren.at/

    Thank you an best regards you can close the topic now.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Problem with mobile menu’ is closed to new replies.