Pro Header Sub Links Not Working

I can see a post 28 days ago regarding this topic of Pro Header Sub Links Not Working correctly.

Can you please advise if there is an update to this known issue.

Hello Kimberly,

I have checked your Pro site and I am seeing the submenus.

Uncaught TypeError: $ is not a function
    at NewSite2021:247
NewSite2021:1 

By the way, i have inspected it thoroughly and there is a JS error on the page because you have inserted this custom JS code:

$(document).on('click', '.x-menu a.x-anchor-menu-item ', function(event){
        if(jQuery(event.target).hasClass('x-anchor-sub-indicator')) {
        	event.preventDefault();
        } else {
        	var url = $(this).attr('href');
        	window.location = url;
        }
});

You need to update this JS code and use this instead:

(function($){
	$(document).on('click', '.x-menu a.x-anchor-menu-item ', function(event){
	    if(jQuery(event.target).hasClass('x-anchor-sub-indicator')) {
	    	event.preventDefault();
	    } else {
	    	var url = $(this).attr('href');
	    	window.location = url;
	    }
	});
})(jQuery);

Please note that custom coding is outside the scope of our support. Issues that might arise from the use of custom code and further enhancements should be directed to a third party developer.

Best Regards.

From your screenshot it doesn’t appear you are viewing the menu on the actual website page. When you go to the website page you see the menu but the sublinks will not work. I’ve tested this on Google Chrome and Safari Broswer.

I’ve updated the js as you requested and cleared cache and even went into an incognito window and still no availability on a desktop screen to actually see the sublinks in the main menu.

Hi Kimberly,

This seems to be connected with this thread:

Please see our response in that thread. Thanks.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.