Reply To: Mobile Menu: Top Level Menu Items as links

Home Forums Older releases 1.0.x Mobile Menu: Top Level Menu Items as links Reply To: Mobile Menu: Top Level Menu Items as links

#3248
admin
Keymaster

To make the parent items just a toggle for the sub menus onclick (in collapsible and in desktop mode) just use the code from 1 b) above and disable the collapsible check – i.e.:

$(function() {
	// use the whole parent item as sub menu toggle button
	$('#main-menu').bind('click.smapi', function(e, item) {
		var obj = $(this).data('smartmenus');
		// if (obj.isCollapsible()) {
			var $sub = $(item).dataSM('sub');
			if ($sub && $sub.is(':visible')) {
				obj.menuHide($sub);
				return false;
			}
		// }
	});
});;

Register

You will be emailed a link to set your password.

Login

Lost password?