Change dropdown menu activation from hover to click

ThemeBurn SupportForumsOpenCart ThemesBurnEngineChange dropdown menu activation from hover to click

This topic has been marked as not resolved.

We need to change how the dropdown menu is triggered, specially on the left bar menu. the submenus are displayed on hover, we want it to be displayed when users clicked on the main/parent categories.

we used the Trendo theme here:

https://beautycollective.com.au/All-Skin-Care

For reference we like it to be just like the mobile menu

February 27, 2019 at 10:53 am #67327

Hi,

You can re-initialize the menu behavior for a selected menu:

$(document).ready(function() {
  $('#Menu_DIA2h3lE .nav-stacked').menuAim({
    triggerEvent: 'click',
    rowSelector: '> li',
    activateCallback: function(row) {
      $(row).addClass('tb_hovered');
    },
    deactivateCallback: function(row) {
      $(row).removeClass('tb_hovered');
    }
  });
});

You need to insert this code in the “Custom JS” section:

https://i.imgur.com/5n2acGC.png

BR,
ThemeBurn team

February 28, 2019 at 12:34 pm #67330

Hello,

this fix don’t work, thanks anyway. we have used a module specifically for the menu.

April 1, 2019 at 11:07 am #67647
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.