Mobile menu in Moesia is jumping up and down

Hi, I use the moseia theme at

The menu is fine on a desktop but the mobile menu is jumping up and down when trying to select an item. I am using wordpress 5.6. I have also tried deactivating all plugins. Problem only started in upgrade to 5.6

Any ideas on how I can fix this

thanks

Hi,

I am sorry to hear you’ve run into issue with the mobile menu. I am happy to help out.

Try these steps:

  1. Install and activate the TC Custom JavaScript plugin
  2. Go To Appearance > Custom JavaScript
  3. Paste the following code into the provided box
    ;(function($) {

      'use strict'

      if ( matchMedia( 'only screen and (max-width: 991px)' ).matches ) {

        if( $('.menu-item-has-children').length ) {
            $('.menu-item-has-children').each(function(){

              $(this).children('.sub-menu').wrap('<div class="sub-menu-wrapper" style="display: none;" />');
              $(this).children('a').click(function(){

                 $(this).next('.sub-menu-wrapper').slideToggle();

                 return false;

              });

            });
        }

      }

    })(jQuery);
  1. Update

Regards,
Kharis
aThemes Support

That is outstanding support! Thank you very much and it worked great.

1 Like

You’re welcome!

Please let us know in a new topic if you have any further questions, or if we can provide you with any other assistance.

Regards,
Kharis
aThemes Support