Тёмный

Hamburger Menu on Desktop Squarespace 7.1 

Sam Crawford | Squarespace Expert
Подписаться 2,2 тыс.
Просмотров 6 тыс.
50% 1

Can you add a hamburger menu to a desktop Squarespace website? Find out in the latest by Crawford Squarespace guide.
Code from the video can be found here: www.bycrawford.com/blog/addin...
Timestamps
00:00 Intro
01:41 Step-by-step
02:05 Code
04:04 Outro
💸 Speedrun your first $100k as a Squarespace designer: sixfiguredesign.club
📱 Hire me to build your Squarespace website: calendly.com/bycrawford/call
Disclaimer
The term "Squarespace" is a trademark of Squarespace, Inc. This channel is not affiliated with Squarespace, Inc.

Опубликовано:

 

7 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 92   
@samjoste
@samjoste 7 месяцев назад
Man, another perfect video. Every time I go searching for a Squarespace solution and you pop up, I know it's going to be good stuff.
@bycrawford
@bycrawford 7 месяцев назад
Thanks so much Sam! Glad you find them useful
@MATTSDAILYCALLS
@MATTSDAILYCALLS 11 месяцев назад
LEGEND! Thank you so much brotha! Great content btw
@bycrawford
@bycrawford 11 месяцев назад
Glad I could help Matt! Thanks for the kind words
@hellokellybrito
@hellokellybrito Год назад
Perfect solution. Thank you!
@bycrawford
@bycrawford Год назад
You're welcome!
@user-ig3ch8ch5r
@user-ig3ch8ch5r Год назад
Legend! Thank you
@bycrawford
@bycrawford Год назад
Thanks for the kind words!
@kimconantphotography
@kimconantphotography Год назад
Great tutorial. So happy I found you. Great info, and I love your audio -- can you share your mic you use? Thanks
@bycrawford
@bycrawford Год назад
Thank you Kim! I use a Blue Yeti mic and then run it through a software called Descript which allows you to apply 'studio sound' to the audio
@kimberlyconant6863
@kimberlyconant6863 11 месяцев назад
Thank you, I appreciate it! @@bycrawford
@timcity
@timcity 9 месяцев назад
Great quick video! Quick question... Is it possible to customize the hamburger menu? Ie. change stroke, rotation of the lines, add a third line, color, etc?
@bycrawford
@bycrawford 9 месяцев назад
Thank you! It should be. What specifically would you like to do?
@KimHGlass
@KimHGlass 9 месяцев назад
Hi Sam, thanks for this video! Is it possible to have different menu options on the pop-up hamburger menu than what is displayed on the hero menu?
@bycrawford
@bycrawford 9 месяцев назад
You're welcome Kim! This requires a different setup, but can be achieved. Here's the tutorial: ryandejaegher.com/how-to-add-a-desktop-burger-to-squarespace-7.1/
@zikoedits
@zikoedits 9 месяцев назад
Hi Sam, great video as always. May I ask for some help? How can I remove the contact us button when the menu opens?
@bycrawford
@bycrawford 9 месяцев назад
Thank you! If you click on your header > elements > button You should be able to untoggle the button :)
@alexharper8861
@alexharper8861 Год назад
Awesome tutorial! Quick question, how would you add the hamburger menu to the left side of the header while also keeping the CTA button on the right side?
@bycrawford
@bycrawford Год назад
Thanks Alex! This is a lot more code-heavy. But there is a solution which is actually a paid plugin from Ghost Plugins if you're familiar with them?
@bycrawford
@bycrawford Год назад
ryandejaegher.com/how-to-add-a-desktop-burger-to-squarespace-7.1/ This could also help!
@braciawm
@braciawm 8 месяцев назад
Hi, Great video! How to move burger menu on the left side, logo to medium and button on the right? I've chosen header layout correctly, but it doesn't work.
@bycrawford
@bycrawford 8 месяцев назад
Hey! Thanks so much. You can try this: @media screen and (min-width:992px) { .header--menu-open .header-menu { bottom: unset; height: 50%; left: 20px; right: 20px; top: 20px; } .header-menu-nav-folder.header-menu-nav-folder--active { overflow: hidden; } .header-menu-nav-folder-content a { margin-top: 10px; margin-bottom: 10px; } }
@Medborgarjournalistik
@Medborgarjournalistik Год назад
SUPER!!!!!!!!
@bycrawford
@bycrawford Год назад
Thanks!
@tbizzlecu
@tbizzlecu 28 дней назад
Great video! Is there anyway to keep the social icons and lose everything else?
@bycrawford
@bycrawford 27 дней назад
Thanks! Try deleting the code and adding this instead: .header-nav { display: none; } .header-actions { margin-right: 20px; } .header-burger { display: flex; } .header--menu-open .header-menu { visibility: visible; opacity: 1; }
@alannakirsti.
@alannakirsti. 9 месяцев назад
Hey Sam! Great vid! I've since used to the hamburger code on my website and I love the look of it. However, the cart icon seems to disappear on a desktop for me (but remains when viewed on a mobile). Do you have a solution to bring this back on desktop? 🙂
@bycrawford
@bycrawford 9 месяцев назад
Thanks Alanna! Try deleting the code and adding this instead: .header-nav { display: none; } .header-actions { margin-right: 20px; } .header-burger { display: flex; } .header--menu-open .header-menu { visibility: visible; opacity: 1; } Does this work for you?
@abelarvizu2898
@abelarvizu2898 6 месяцев назад
Hey Sam! Do you know if it's possible to basically do what you're showing @2:01 but in a line of text? Lets say the text you have there "Code Samples" where if you click it, it would have a drop down menu?
@bycrawford
@bycrawford 6 месяцев назад
Hey! Yes I believe there is a tutorial about creating this sort of system here: ryandejaegher.com/how-to-add-a-desktop-burger-to-squarespace-7.1/
@inspired_bydesign
@inspired_bydesign 3 месяца назад
Thank you so much! You just saved me from having to purchase a plugin.
@bycrawford
@bycrawford 3 месяца назад
Glad I could help!
@jaydyt
@jaydyt 5 месяцев назад
Awesome video, just what I was looking for. Thank you! One thing I am struggling with is changing the size of the font of my actual menu - it is far too big. I have tried the site styles but it won't reduce the size at all. If you have any tips, that would amazing! Great content, thank you!
@bycrawford
@bycrawford 5 месяцев назад
Glad it helped! I actually have a video on this too. You can find it here: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-fu1ev_p9Pgk.html
@jaydyt
@jaydyt 5 месяцев назад
Huge thank you! My website looks stunning now. Your channel deserves so much credit. Your content is invaluable. Will certainly consider utilising your services or recommending them in the future. Thanks X @@bycrawford
@bycrawford
@bycrawford 5 месяцев назад
Appreciate the kind words! Thanks a lot :D
@GeorgiaStevenson-ll1cz
@GeorgiaStevenson-ll1cz 4 месяца назад
Hey Sam, Just wondering if theres a way to have the desktop hamburger menu not take up the whole page? I ideally would like it to only be 1/3 of the full width. Thanks!
@bycrawford
@bycrawford 4 месяца назад
Hey Georgia! This tutorial should help with that: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-yXDALJhM1rg.html&ab_channel=S-EWebDesign
@christinas5691
@christinas5691 3 месяца назад
Any way to fix the back and forth jumping of the scroll bar width when the navigation menu is opened and closed? The scroll bar disappears upon opening which pushes the entire page over the width of the scroll bar.
@bycrawford
@bycrawford 3 месяца назад
Not that I am aware of - sorry!
5 месяцев назад
Thank you very much for the video. Its very helpfull. I wanna ask a question. I create the burger menü but when i click on it, the menü layer that pups up covers all the intro page. Can we make it smaller?
@bycrawford
@bycrawford 5 месяцев назад
Glad it helped! Yes there is actually a plugin that does this really well. Here's the link: schwartz-edmisten.com/plugins/p/hamburger-menu-on-desktop-in-71
5 месяцев назад
@@bycrawford Thanks man. It very kind of you.
@lauragalante8575
@lauragalante8575 9 месяцев назад
Thanks so much! Is there a way to increase the space between the button and the hamburger?
@bycrawford
@bycrawford 9 месяцев назад
You're welcome Laura! Try this: header .sqs-button-element--primary { margin-right: 20px !important; }
@lauragalante8575
@lauragalante8575 9 месяцев назад
@@bycrawford YOU ARE A SAINT
@codydzurisin4053
@codydzurisin4053 10 месяцев назад
Hey! This worked for me, but is there a way to make the lines on the menu a little thicker?
@bycrawford
@bycrawford 10 месяцев назад
Hey Cody! You can actually change this natively. When we use this code, it pulls in the styling of the mobile menu. So you just need to click on your header, navigate to the mobile icon and then style the burger there. Let me know if this is clear enough?
@luisgarcia22
@luisgarcia22 5 месяцев назад
On Squarespace 7.0 the hamburger menu would appear whenever you resized the window narrower, or whenever the zoom was large and to avoid the navigation items to stack on top of each other. On 7.1 this is also present, but the navigation items stack up on top of each other and they won't turn into a hamburger menu unless you really made your window very small. Is there a way to adjust that conversion point with this code? Thanks!
@bycrawford
@bycrawford 5 месяцев назад
You can wrap your code in a media query like this: @media screen and (max-width: 1000px) { .header-nav, .header-actions { display: none; } .header-burger { display: flex; } .header--menu-open .header-menu { visibility: visible; opacity: 1; } } And then just adjust the px value!
@ilse5293
@ilse5293 Год назад
Great Sam! Can you explain how not to have the red background? Adjust so that we can choose a different colour and change opacity so that the desktop image is fully visible when menu is open? Many thanks!
@bycrawford
@bycrawford Год назад
Thank you Ilse! So what this code does is brings the mobile menu to the desktop, meaning to change the colour, you just need to go into the site styles of your site and change the colour. I have a video on this here to make it easier: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-8URc-uELYUk.html Then if you wanted to turn the opacity down on the background, add this to your CSS: .header--menu-open .header-menu .header-menu-bg { background-color: rgba(0,0,0,0); } You can change the final '0' to anything between 0-1 (eg. 0.5) to make the menu slightly more opaque. Hope this helps!
@ilse5293
@ilse5293 Год назад
@@bycrawford thanks so much! so the mobile view background color needs to be changed, meaning the mobile desktop view inherits mobile col our settings?
@bycrawford
@bycrawford Год назад
@@ilse5293 Exactly that!
@ilse5293
@ilse5293 Год назад
@@bycrawford Fab! Thank you again :)
@robhindley1769
@robhindley1769 Год назад
How do I do this for Squarespace 7 using Bedford template. Other devs suggest searching mobile break in the site design but I get nothing found error. Thanks Sam.
@bycrawford
@bycrawford Год назад
Hey Robin, yeah I don't think the mobile breakpoint method works with Bedford - I just checked. There's not too much info about this online, but I did find this post that may help: forum.squarespace.com/topic/214632-bedford-theme-adding-hamburger-menu-to-desktop/
@futureproofwellness
@futureproofwellness 5 месяцев назад
Great video! One question, Is there a way to have the burger menu as well as a cart button on the header? It deletes it when I input the code
@bycrawford
@bycrawford 5 месяцев назад
Thank you! Try deleting the code and adding this instead: .header-nav { display: none; } .header-actions { margin-right: 20px; } .header-burger { display: flex; } .header--menu-open .header-menu { visibility: visible; opacity: 1; }
@futureproofwellness
@futureproofwellness 5 месяцев назад
@@bycrawford wow, thank you so much for your help! your content is a massive help
@christinas5691
@christinas5691 2 месяца назад
@@bycrawford This worked to bring back the cart, but the logo is no longer centered. And the cart seems large for desktop. Can you help with this? Thank you!
@chaselo7976
@chaselo7976 4 месяца назад
Great video! Is it possible to change the icon of the hamburger menu to a different icon or image of my own choice?
@bycrawford
@bycrawford 4 месяца назад
Thank you! Yes you can do that using this: www.primitusconsultancy.co.uk/blog/replacing-the-mobile-hamburger-menu-icon-with-your-own-image-on-squarespace-71
@chaselo7976
@chaselo7976 4 месяца назад
Thanks for the response!@@bycrawford The link you shared did replace the hamburger menu to an icon of my choice! However, I do have two additional questions. Is it possible to make the icon "flex" into an "x" when the menu is opened or allow for the icon to have a different shade of color when the menu is open? Also, would it be possible to adjust the size of the text in the menu and align the content in the menu towards the left side of the screen when the menu is open?
@bycrawford
@bycrawford 4 месяца назад
@@chaselo7976 no problem! I have a guide on changing the text size here: bycrawford.com/blog/how-to-change-mobile-menu-font-size-squarespace To left align, you can do this in the nav menu settings when you're editing a page. For the flexing of the icon, I don't think you can do that in terms of animating it. But you can change the icon when the menu is open. Check out this guide: forum.squarespace.com/topic/256249-how-can-to-change-the-burger-menu-icon-to-a-close-icon-when-the-menu-is-open-on-mobile-squarespace/#comment-677130
@chaselo7976
@chaselo7976 4 месяца назад
@@bycrawford Thanks again for the help! I was able to successfully change the text size and align it towards the left of the menu. I was unfortunately unable to change the icon of the opened menu with the guide you provided. Do you have any ideas on how to fix this or perhaps a different solution to tackle this situation? I also realized that a scroll bar would appear when the menu is open. Would it be possible to hide that? Again, appreciate the help and responses!
@spaacis
@spaacis 5 месяцев назад
This is great! How do i get my Hamburger to align right rather than be left aligned?
@bycrawford
@bycrawford 5 месяцев назад
Thanks! It should already be right aligned like in the video
@spaacis
@spaacis 5 месяцев назад
@@bycrawford mine is left aligning - really odd - is there a way I can change this please?
@jacobbrooks9414
@jacobbrooks9414 7 месяцев назад
How would I keep the navigations as is (no hamburger menu) but change WHEN it morphs into a hamburger menu? Meaning, as it stands, if rescale my browser my navigation items will stack and THEN morph into a hamburger menu. I want to avoid the stacking and go straight into a hamburger menu. Lol hopefully that made sense.
@bycrawford
@bycrawford 7 месяцев назад
Makes perfect sense Jacob! So you add a media query. In this instance it would look like this: @media screen and (max-width: 940px) { .header-nav, .header-actions { display: none; } .header-burger { display: flex; } .header--menu-open .header-menu { visibility: visible; opacity: 1; } } And then just adjust your px value in the 'max-width' bit to fit what you need.
@jacobbrooks9414
@jacobbrooks9414 7 месяцев назад
Worked beautifully! Thank you! @@bycrawford
@sjcrwfd
@sjcrwfd 7 месяцев назад
@@jacobbrooks9414 you're welcome!
@loudesborough8141
@loudesborough8141 6 месяцев назад
Hey, this worked perfectly for me, however, I want to get the items on the menu to be centred on the screen, currently they're left aligned... Thanks!
@bycrawford
@bycrawford 6 месяцев назад
Hey! You can just set that natively by going into the mobile menu editor and center aligning in there
@user-qj3gk8ti8p
@user-qj3gk8ti8p 8 месяцев назад
THANK YOU!!!! My stupid site is actually displaying the WORD "menu" instead of displaying the burger icon which screams amateur hour. I have no idea how to change this.
@bycrawford
@bycrawford 8 месяцев назад
Hey! You're very welcome. If you send me the link to your site I'll take a quick look for you. If RU-vid won't let you post the link just drop me an email at sam@bycrawford.com
@Verien7
@Verien7 10 месяцев назад
Hi thank you for this code. I have one question. My font and spacing is huge when the menu drops down. Do I sort this with code or fonts/style
@bycrawford
@bycrawford 10 месяцев назад
Hey Furkz this would need some code!
@Verien7
@Verien7 10 месяцев назад
@@bycrawford Hi, many thank for the reply. Could you point me in the right direction or is it something you can help with. Thanks
@bycrawford
@bycrawford 10 месяцев назад
Yes of course! @@Verien7 Try this: @media screen and (min-width: 641px) { .header-menu .header-menu-nav .header-menu-nav-item a { margin-top: -10px } } And adjust the px value to suit your needs.
@Verien7
@Verien7 10 месяцев назад
@@bycrawford Many Thanks, will give that a go.
@Verien7
@Verien7 10 месяцев назад
Perfect Thanks SO much. @@bycrawford
@johnathanjenkins289
@johnathanjenkins289 Год назад
Did'nt work for me. i am not a code guy but i am proficient in copy and paste.
@bycrawford
@bycrawford Год назад
Hey Jonathan, Try this: .header-nav, .header-actions { display: none !important; } .header-burger { display: flex !important; } .header--menu-open .header-menu { visibility: visible !important; opacity: 1 !important; } If that doesn't work, email me at sam@bycrawford.com with a screenshot of your code and I will help you out.
@johnathanjenkins289
@johnathanjenkins289 Год назад
@@bycrawford that did turn the button into the hamburger, however it then goes into a button menu to be pressed to bring me to the page i assigned the button to bring me to, idk
@bycrawford
@bycrawford Год назад
@@johnathanjenkins289 Hey Jonathan, it doesn't target the button so that shouldn't be happening! If you send me an email I can take a proper look for you.
@gh8284
@gh8284 8 месяцев назад
Hey, thanks for this. It worked perfectly but my logo always gets moved a bit to the left (it is central). How do I make sure it doesn't move the logo?
@bycrawford
@bycrawford 8 месяцев назад
Hey! I found a forum thread on this here: forum.squarespace.com/topic/172992-burger-navigation-menu-logo-not-centered/ This code should fix your issue: @media screen and (max-width: 3000px) { /* Display burger icon at all widths and align right */ .header .header-burger { display: flex; order: 2 !important; } /* Make burger menu visible at all widths */ .header--menu-open .header-menu { opacity: 1; visibility: visible; } /* Center logo in mobile device */ .header-title { text-align: center !important; } /* Hide primary navigation menu */ .header .header-title-nav-wrapper .header-nav { display: none; } .header-title-nav-wrapper { flex: 1 0 100%; } }
Далее
Search Icon in Header for Squarespace 7.1
14:58
Просмотров 9 тыс.
The Ultimate Guide to Carousels in Squarespace
14:35
Просмотров 25 тыс.
6 BEST Squarespace Plugins and Extensions for 2024
10:56
How To Show A Divi Hamburger Menu on Desktop
10:52
Просмотров 23 тыс.
Split Navigation in Squarespace 7.1
12:21
Просмотров 7 тыс.
5 Squarespace Mobile Menu Design Hacks
11:41
Просмотров 7 тыс.
50 Website Design Mistakes (And Why)
8:24
Просмотров 74 тыс.