Add top menu link inside dropdown on mobile devices
Sometimes you may need to access your top menu link on your mobile devices, but in our themes this work only like a dropdown toggler. This code may help you:
jQuery(function ($) { $('#nk-nav-mobile .dropdown').each(function () { var $this = $(this); var $item = $this.prev('a'); if ($item.length) { $this.children('li:not(.bropdown-back):eq(0)').before($('<li>').append($item.clone())); } }); });
Menu items will be added here: