Make a button open menu on mobile version?

HenkE-commerce
New Member
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

0 Likes
Guleria
Shopify Partner
1779 374 529

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

Want to modify or custom changes on store hire me.
Email: guleriathakur43@gmail.com, Skype: navrocks1
If helpful then please Like and Accept Solution.
Buy me a coffee ☕ My PayPal
0 Likes