Find menu ID

I need to add the following to the Javascript page to stop a navigation menu going to the catagory page. But I do not know what the menus ID number is, the 1963 is an old ID. Or was that number setup as an ID by a person and not wordpress? Anyway I need to know how to find the menu ID number.

jQuery(’#menu-item-1963 > a’).on(‘click’, function(e) {return false;});

Hey There,

By inspecting menu item you can find the menu ID for that menu item. Right click on menu item and click inspect.

Hope this helps

Regards

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