Reply To: Menu onclick handlers block clicks

Support Forums Cian – WP Theme Menu onclick handlers block clicks Reply To: Menu onclick handlers block clicks

#5412
Antonio Agudo
Participant

Did a little research and found that the menu adds the scrollTo class to all menu items regardless if they are on page or not and then this code gets added, which leads to “regular” links that point away from the home page being unusable.

		jQuery('.navbar-nav > li.scrollTo > a').bind('click', function(e) {
		    e.preventDefault();
		    var target = this.hash;
		    jQuery.scrollTo(target, 1250, {
		    	easing: 'swing',
		    	axis: 'y',
		    	offset: -45
		    });
		});

Am I correct to assume the menu was built to only support onpage anchor links?