studentlaw99 Posted June 24 Posted June 24 Hi guys I've followed Will's instructions for creating a mega-menu on my website: Mega Menu in Squarespace 7.1 (Simple) | Will Myers | Squarespace Plugins (will-myers.com) Now I've created it, but it seems that I've created it only for desktop-users, how can it be visible on mobile as well? I went through the page multiple times but can't seem to find it, any ideas? I've been told something like this: data-mobile-type="section" Add the above to the code block used in the footer section that is being used to initiate the mega menu Once installed correctly the code should look a bit like the below <div data-mega-menu="/mega-menu-url-here" data-mobile-type="section" ></div> So that means it should look like this? <script> $(function(){ $('.header-display-desktop [href="/myURL"] + .header-nav-folder-content').append($('[data-section-id="6665f59f2cbd2d1d11f76609"]')) }); <div data-mega-menu="/myURL" data-mobile-type="6665f59f2cbd2d1d11f76609"></div> </script> Thanks and have a nice day!
tuanphan Posted June 28 Posted June 28 Can you share link to site where you added code? We can check easier. Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment