Jump to content

Use hamburger menu for screen widths less than a breakpoint

Recommended Posts

Site URL: https://www.ultimategearlists.com/

I am using Squarespace 7.0, with the Five template.

The link to my site is: https://www.ultimategearlists.com/.

My desktop navigation menu has grown, and now has too many elements to fit in a single line when viewing on a narrower desktop or a tablet.

I would therefore like to use an arbitrary breakpoint (say around ~1200px) below which the navigation bar changes to a right-aligned hamburger icon and clicking on the hamburger icon will produce a drop down navigation similar to mobile.

Unfortunately the breakpoint for switching from desktop navigation to mobile navigation (i.e. hamburger) appears hardcoded in the Five template, at 640px. So I likely need to use custom CSS to get around that.

I have tried various custom CSS approaches based on other forum posts, but none seem to work. Perhaps since they aren't suitable to the Five template.

Any assistance would be much appreciated!

Link to comment
  • Replies 1
  • Views 683
  • Created
  • Last Reply
On 5/24/2021 at 9:20 PM, Sam_90210 said:

Site URL: https://www.ultimategearlists.com/

I am using Squarespace 7.0, with the Five template.

The link to my site is: https://www.ultimategearlists.com/.

My desktop navigation menu has grown, and now has too many elements to fit in a single line when viewing on a narrower desktop or a tablet.

I would therefore like to use an arbitrary breakpoint (say around ~1200px) below which the navigation bar changes to a right-aligned hamburger icon and clicking on the hamburger icon will produce a drop down navigation similar to mobile.

Unfortunately the breakpoint for switching from desktop navigation to mobile navigation (i.e. hamburger) appears hardcoded in the Five template, at 640px. So I likely need to use custom CSS to get around that.

I have tried various custom CSS approaches based on other forum posts, but none seem to work. Perhaps since they aren't suitable to the Five template.

Any assistance would be much appreciated!

Try access Design > Site Styles > Scroll down to Mobile: Mobile Breakpoints

break.png.3bf910dba246824ee547ca9adc50d524.png

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

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.