1. By customizing your nav_ template.
2. By handling (removing) the click events on first level <a>s with JavaScript. If you use JS for your menu anyway, you simply can remove the default click event with JS and thus don't need a custom template which you have to review in future updates.
edit: Maybe this way
PHP Code:
<script>
(function($) {
$(document).ready(function() {
var firstLevelLinks = $('.mainnav > ul > li > a');
// do this on first level click
firstLevelLinks.on('click', function(ev) {
ev.preventDefault();
// do other stuff
});
});
})(jQuery);
</script>
Bookmarks