Prevent menu to expend when clicking on it

Hi, I added code that expands the header menu when it is hovered over and it work perfectly, but now I would like to prevent the menu from expanding when it is clicked cause I don’t need that anymore with the over function. How can I do this?

Here is my site https://bf4d41.myshopify.com/

Thanks ! :wink:

Hi @theophile7411

This is Victor from PageFly - Shopify Page Builder App

The function that handles expand menu is inside your theme code. Usually, it is in theme.js or app.js. But i suggest you just keep it like that because it won’t affect too much since the menu is now expand on hover
Also, the core javascript file does not allow you to revert the history. In case that there is something wrong happens it will be hard to fix.

Hope this can help you solve the issue

Best regards,

Victor | PageFly

1 Like