Mobile navigation menu - closing one tab that is expanded by default

Lauraperkins
New Member
1 0 0

We have the Bedding tab under Shop on our mobile navigation expanded by default - how can this tab be closed by default on mobile so it displays closed the same as the other tabs (Duvets & Pillows, Bath).

See screenshot of this shown below. 

wwww.bedfolk.com 

Lauraperkins_0-1636733020279.png

 

Reply 1 (1)
isis-mtnez
Tourist
22 3 3

Hello,

Go to your admin, Online Store, Themes. Live theme/ Actions / Edit Code

Add this code to your theme.liquid 

<script> 

$(document).ready(function () {
document.querySelector('.u-h7 .Collapsible__Plus').click();

});

</script>

If there is already a $(document).ready(function () { }.  please add this party only:  document.querySelector('.u-h7 .Collapsible__Plus').click();

Hope this helps!


Give me a Like if I helped you

Please mark as Accepted Solution if I fixed your problem!

Thanks

Give me a Like if I helped you
Please mark as Accepted Solution if I fixed your problem!
Thank you :)