Jump to content

Make the Mega menu for mobile users visible as well?

Recommended Posts

Posted

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!
 

  • Replies 1
  • Views 979
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.