Parallax Theme & Retina Theme

Parallax & Retina

These themes contain 'mm-menu' jquery plugin. The menu automatically closes after clicking a link. Embedding the following code into the JavaScript assets file (and removing the existing plugin) will activate the menus. 


assets/app.js.liquid:87

$('#nav').mmenu({
  {% if settings.search_enabled %}
    searchfield : {
      add: true,
      search: true,
      noResults: '<a href="/search?q=" class="search_link">' + {{ 'general.search.advanced_search_html' | t | json }} + '</a>'
    },
  {% endif %}
 classes: "mm-{{ settings.mobile_menu_color }}",
 offCanvas: { pageSelector: "#content_wrapper" },
 onClick: {
   close: false
 }
});

____________________________________________________

 

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk