I'm having issue with Side-header.
The side nav on some android devices doesn't work as expected.
the submenus won't open on click
2 replies · opened Jul 27, 2018
I'm having issue with Side-header.
The side nav on some android devices doesn't work as expected.
the submenus won't open on click
expected behaviour: https://gyazo.com/4a9e645bb5787678ed6c2356bbcd000b
bug: https://gyazo.com/25a0a8d7533320083598258ff1e488bb
this only happens on some android devices.
Hello,
Consider adding the following JS Code at the bottom of the Page just after the js/functions.js JS File Linking:
jQuery(document).on( 'ready', function(){
if( SEMICOLON.isMobile.any() ) {
if( jQuery().superfish ){
jQuery('#primary-menu > ul, #primary-menu > div > ul,.top-links > ul').superfish('destroy').addClass('windows-mobile-menu');
} else {
jQuery('#primary-menu > ul, #primary-menu > div > ul,.top-links > ul').addClass('windows-mobile-menu');
console.log('menufunctions: Superfish not defined.');
}
jQuery( '#primary-menu ul li:has(ul)' ).append('[](#)');
jQuery( '#primary-menu ul li.sub-menu' ).children('a.wn-submenu-trigger').click( function(e){
jQuery(this).parent().toggleClass('open');
jQuery(this).parent().find('> ul, > .mega-menu-content').stop(true,true).toggle();
return false;
});
}
});
This will enable a functionality which will enable the Dropdown Arrow to Open/Close the Sub Menus.
Hope this Helps!
Let us know if we can help you with anything else or if you find any further issues.
Have the same question, or something new?
Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.
Reply on the dashboard