Mega Menu not displaying images in Mobile view

2 replies · opened Aug 30, 2019

SsharonkalinowskiAug 30, 2019

Hi,

I can you please see https://maumee.stalkeradvertising.com/maumee/index_maumee.html in MOBILE view. The image links that have images in the drop downs are not showing and links are not working. "Heating" and "Air Quality".

It looks fine in preview mode in mobile.

Thank you for your help :)

SSemicolon WebSTAFFAug 31, 2019

Hello,

Thanks for reporting this to us!

It appears to be a Bug. Please find following code in the js/functions.js File inside the Function Block:

if( $('#primary-menu').hasClass('on-click') || ( $body.hasClass('device-md') || $body.hasClass('device-sm') || $body.hasClass('device-xs') ) ) {
	$('#primary-menu:not(.on-click) > ul, #primary-menu:not(.on-click) > div > ul:not(.dropdown-menu)').superfish('destroy');
	$('#primary-menu li:has(ul) > a').on( 'click touchend', function(e){
		$(this).parents('.sub-menu').siblings().find('ul,.mega-menu-content').removeClass('d-block');
		$(this).parent('li').children('ul,.mega-menu-content').toggleClass('d-block');
		e.preventDefault();
	});
}

and replace it with:

if( $('#primary-menu').hasClass('on-click') || ( $body.hasClass('device-md') || $body.hasClass('device-sm') || $body.hasClass('device-xs') ) ) {
	$('#primary-menu:not(.on-click) > ul, #primary-menu:not(.on-click) > div > ul:not(.dropdown-menu)').superfish('destroy');
	$('#primary-menu li:has(ul) > a').on( 'click touchend', function(e){
		$(this).parents('.sub-menu').siblings().find('ul,.mega-menu-content').removeClass('d-block');
		$(this).parent('li').children('ul,.mega-menu-content').toggleClass('d-block');
		var megaMenuContent = $(this).parent('li').children('.mega-menu-content');
		setTimeout( function(){
			if( megaMenuContent.find('.owl-carousel.customjs').length > 0 ) {
				megaMenuContent.find('.owl-carousel').removeClass('customjs');
				SEMICOLON.widget.carousel();
			}
			if( megaMenuContent.find('.grid-container').length > 0 ) {
				megaMenuContent.find('.grid-container').isotope('layout');
			}
		}, 400);
		e.preventDefault();
	});
}

This should fix the issue. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

SsharonkalinowskiSep 1, 2019

Perfect fix, thank you so very much!

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