Jump to content

Code to change the layout of the header menu options

Go to solution Solved by Ziggy,

Recommended Posts

Apologies if this has been covered before. I am new to all of this and have finally finished building my website, however there are a couple of things I am unable to do due to not having any coding knowledge. I am using version 7.1 and the set templates don't allow me to do the following:

 

1. On the mobile version, I would like the Book Now button to be displayed at the top next to the logo, however it is only displaying at the bottom of the navigation page.

 

2. On the desktop view, the header is not spaced out properly and it's all a bit mixed up. Ideally I would like a side navigation menu, but if this is not possible I would like to be able to space it out evenly. Each folder has pages so a drop down option comes up and it just looks very squashed at the moment.

 

3. On the desk top view, the book now button doesn't stand out - I would like to make this bold and bigger so it's eye-catching.

 

I have attached photos to show what I mean.

Is anyone able to help at all please?

Thank you in advanced 😀

IMG_4200.PNG

Screenshot 2023-09-19 at 16.57.23.png

Screenshot 2023-09-19 at 16.57.56.png

Link to comment
  • Solution

Can you share your website URL and site wide password?
https://squarefortytwo.com/squarespace-guides/add-a-site-wide-password-to-your-squarespace-website

Point 1 is achievable.

Point 2 needs some consideration, it looks like you have far too many header items, I would suggest that you consider using a "mega menu" like the one linked here:
https://www.will-myers.com/articles/building-a-mega-menu-in-squarespace-71-free
or you enable the mobile menu with a plugin like this:
https://www.ghostplugins.com/products/mini-mobile-menu-in-squarespace-71

Point 3 looks like you have the button background set to white and the text set to blue, you can change this in the Style -> Colours settings to make it stand out.

Edited by Ziggy

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️ Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

Great, let me know if any of those solutions work for you and if you need any other help.

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️ Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

If you haven't found the correct code I can give that to you tomorrow. Just reply here if you haven't heard from me.

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️ Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

Try this Custom CSS

// menu item position
.header-menu-nav-item {
  padding-left:6vw;
}
.header-menu-nav-item a {
    margin-left: 5vw;
}
.header-menu-actions {
  margin-left:6vw;
}
// menu order
.header-menu-cta {
  order:1;
}
.header-menu-nav-folder-content {
  order:2;
}
.header-menu-actions {
  order:3;
}

 

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️ Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

I love the change to the slide out mobile menu on desktop, really smart looking.

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️ Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

Brilliant - that has worked - thank you!

The Book Now on the mobile version is perfect. The only thing is that the BooK Now button on the desktop version is showing twice - on the header and the menu. I only need it to show on the header. Is there any chance of changing the code so that it only shows in the mobile menu and not on the desktop menu? 

 

I really appreciate your help!

Link to comment
On 9/21/2023 at 7:13 PM, RochSA said:

Brilliant - that has worked - thank you!

The Book Now on the mobile version is perfect. The only thing is that the BooK Now button on the desktop version is showing twice - on the header and the menu. I only need it to show on the header. Is there any chance of changing the code so that it only shows in the mobile menu and not on the desktop menu? 

 

I really appreciate your help!

To hide button on Overlay Menu on Desktop, you can use this CSS

@media screen and (min-width:992px) {
.header-menu-cta {
    display: none !important;
}
}

 

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
On 9/23/2023 at 11:51 PM, RochSA said:

Thank you - that worked! 🙂 

Any chance you have any code I could use to centre my Logo on the desktop version please? It's off to the left and looks odd.

Use this CSS code

@media screen and (min-width: 992px) {
.header-burger {
    position: static !important; 
    order: 1;
    width: 33%;
    justify-content: flex-start
}

.header-title-nav-wrapper {
    order: 2;
    flex-basis: 33%;
}

.header-layout-branding-center .header-actions {
    order: 3;
}}

 

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

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.