SwissUpLabs Logo

Use cases

Mobile navigation

By default when you click on category link it opens category page. If you want to disable it and only expand subcategories, follow these steps:

  1. Go to CMS > Static Blocks > Homepage mobile.
  2. Find the following code:

    <script type="text/javascript">
     new MobileNavigation();
    </script>
    

    and replace it with the next code

    <script type="text/javascript">
        var mobileNav = new MobileNavigation();
        $('nav').select('.level-top').each(function(el) {
            el.observe('click', function(e) {
                if (el.next('ul')) {
                    e.stop();
                    mobileNav.toggle(el.next('ul'));
                }
            });
        });
    </script>
    
Edit this Page