Make a button open menu on mobile version?

HenkE-commerce
Visitor
1 0 0

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!!

MicrosoftTeams-image.png

Reply 1 (1)

Developer-G
Shopify Partner
3079 604 857

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

- If helpful then please Like and Accept Solution.
- Want to modify or custom changes or bug fix on store Hire me.
- Email: guleriathakur43@gmail.com - Skype: navrocks1 ,
- Try GEMPAGES a great page builder
-Advance Search Filter