Make a button open menu on mobile version?

Hi guys,

My name is Henk. I have a question.

In mobile version when the ‘Shop Now’ button is pressed I want it to open the side menu (pointed to with an arrow) but in the shopify setting I can only add a link to an other page. Does anyone know how I can turn the button into a command that opens the side menu? Thank you very much!!

Hello Henk,

It’s possible with JS trigger.
Basic idea is, you have to implement the JS when mobile device will detected.

After that apply on click function for ‘shop now’ button and at the same time trigger click the target ( hamburger menu) and it will done.

Thanks