All Collections
Store
Navigation
Sub-nav without a parent page (Javascript)
Sub-nav without a parent page (Javascript)

How to make the sub-nav parent not click through to a separate page.

Ed Boaden avatar
Written by Ed Boaden
Updated over a week ago

Add the following code snippet to the custom Javascript (or jQuery) field on Site Settings > Design:

$(document).ready(function() {
$('a.sub-nav-parent').attr('href', '#!');
});
Did this answer your question?