Submenu Conflict with Main menu on Mobile

2 replies · opened Apr 27, 2016

SSemicolon WebSTAFFApr 28, 2016

Hello,

Thank You so much for reporting this to us. This does appear to be a Minor Bug with the Code. We will surely fix this in our Next Update which scheduled to be released within 3-4 Days. Meanwhile, you can fix this yourself by simply find the following code in the js/functions.js File inside the onePageScroll: function() Function Block:

if( $('#primary-menu').find('ul.mobile-primary-menu').length > 0 ) {
	$('#primary-menu > ul.mobile-primary-menu, #primary-menu > div > ul.mobile-primary-menu').toggleClass('show', function() {
		$('html,body').stop(true).animate({
			'scrollTop': $( divScrollToAnchor ).offset().top - Number(divScrollOffset)
		}, Number(divScrollSpeed), divScrollEasing);
	}, false);
} else {
	$('#primary-menu > ul, #primary-menu > div > ul').toggleClass('show', function() {
		$('html,body').stop(true).animate({
			'scrollTop': $( divScrollToAnchor ).offset().top - Number(divScrollOffset)
		}, Number(divScrollSpeed), divScrollEasing);
	}, false);
}

and replace it with:

if( $('#primary-menu').find('ul.mobile-primary-menu').length > 0 ) {
	$('#primary-menu > ul.mobile-primary-menu, #primary-menu > div > ul.mobile-primary-menu').toggleClass('show', false);
	$('html,body').stop(true).animate({
		'scrollTop': $( divScrollToAnchor ).offset().top - Number(divScrollOffset)
	}, Number(divScrollSpeed), divScrollEasing);
} else {
	$('#primary-menu > ul, #primary-menu > div > ul').toggleClass('show', false);
	$('html,body').stop(true).animate({
		'scrollTop': $( divScrollToAnchor ).offset().top - Number(divScrollOffset)
	}, Number(divScrollSpeed), divScrollEasing);
}

This will definitely fix this issue. Let us know if we can help you with anything else or if you find any further issues.

Aather_parvezMay 1, 2016

Yep that fixed it

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