Jump to content

Need Help! Navigation code

Go to solution Solved by ElizabethKosich,

Recommended Posts

Hi Elizabeth, Please  use this code to Website > Website Tools > Custom CSS

.Header-nav {
    display: inline-block;
}
[data-nc-container="bottom-center"] {
    width: 100%;
}
[data-nc-container="bottom-left"] {
    text-align: center !important;
    display: block !important;
    position: absolute;
    margin-top: 140px;
    z-index: 999;
}

 

Link to comment

Hello Sam,

Thanks for this Sam, but it doesn't work! The code you provided changes nav menu to horizontal format that's centered across top of page, with logo changing to left justified. I'm attaching 2 screen shots so you can see this code's changes.

I'm looking for code that will 1.) keep logo centered and 2.) change nav menu from horizontal to vertical/stacked like how it currently functions on mobile (see my post to Tuan for screen shot of mobile view with nav menu stacked). Any chance you have code for these changes?

Thanks so much for jumping in here and helping!

Screen Shot 2024-05-01 at 12.01.26 PM.png

Screen Shot 2024-05-01 at 12.00.29 PM.png

Link to comment
  • Solution

THANK YOU Tuan for resolving this issue! See attached screen shot of the updated nav menu in vertical/stacked format. For anyone needing the same change, below is the code and you can also find it here: https://summaryblock.com/save-code/139-2/

nav.Header-nav.Header-nav--secondary>div {
    flex-direction: column !important;
    display: flex;
}
nav.Header-nav.Header-nav--secondary {
    padding-top: 7px !important;
}
nav.Header-nav.Header-nav--secondary a.Header-nav-item {
    padding-bottom: 3px !important;
    padding-top: 3px !important;
}

 

Screen Shot 2024-05-03 at 9.12.53 AM.png

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.