Jump to content

Change order of mobile navigation

Go to solution Solved by tuanphan,

Recommended Posts

Site URL: https://oriole-fox-rana.squarespace.com/config/design/custom-css

Hi there, help please? I have managed to get my sub navigations to show up on mobile view, but I would like to rearrange the order in which they show up.

I would like the "Commercial" and "Residential" to show above "Studio, Journal, Contact"

Here is what's happening at the moment...

1409117411_ScreenShot2021-06-25at11_35_26AM.thumb.png.69c68783b6f9bc1137f118b25d89cc0f.png

 

Here is my code...

 

@media (max-width: 799px){
.header-menu-nav-folder {
    transform: none;
    min-height: 100px !important;
    height: 50vw;
}

.header-menu-nav-folder {
    position: relative; 
    transform: translateX(0);
    min-height: auto;
  }
  
.header-menu-nav-folder a {
    font-size: 2rem;
    line-height: 1.5;
  }
  
 .header-menu-nav-folder[data-folder="root"] {
    position: relative;
    min-height: auto;
    order: 2;
  }
  .header-menu .header-menu-nav a[data-folder-id="/work"] {
    display: none;
}
  
.header-menu-controls-control[data-action="back"] {
    display: none;
  }
}

Thanks in advance :-)

Link to comment
On 6/28/2021 at 5:02 PM, anna6 said:

Oh damn... So sorry you had to ask, I'm a dunce.

Password: l3tmeeein

Hi,

l3tmeeein

Incorrect password. Can you check it again?

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
  • Solution
On 7/1/2021 at 4:40 AM, anna6 said:

Sorry @tuanphan I gave you the password to access all my squarespace, try a new one

password: bubbles

Add to Design > Custom CSS

/* Mobile menu order */
@media screen and (max-width:767px) {
nav.header-menu-nav-list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
22 hours ago, tuanphan said:

Add to Design > Custom CSS

/* Mobile menu order */
@media screen and (max-width:767px) {
nav.header-menu-nav-list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
}
}

 

Worked a dream! Thank you @tuanphan Love your work!

Link to comment
  • 1 year later...

Hey @tuanphan - similar, yet different scenario for me.

I had to switch order on the navigation menu so that order would show as home, about, services, etc on desktop. Unfortunately (and rightly so!), it flips the order on the mobile menu navigation. How can I achieve for the mobile menu to also be in the order of 1. Home, 2. About, 3. Services, 4. Contact, 5. FAQs?

Please see attached.

https://artisanchiropractic.squarespace.com/ // PW: artisan

Screen Shot 2022-09-22 at 10.20.42 PM.png

Link to comment
On 9/23/2022 at 10:27 AM, geearias said:

Hey @tuanphan - similar, yet different scenario for me.

I had to switch order on the navigation menu so that order would show as home, about, services, etc on desktop. Unfortunately (and rightly so!), it flips the order on the mobile menu navigation. How can I achieve for the mobile menu to also be in the order of 1. Home, 2. About, 3. Services, 4. Contact, 5. FAQs?

Please see attached.

https://artisanchiropractic.squarespace.com/ // PW: artisan

Screen Shot 2022-09-22 at 10.20.42 PM.png

Add this to Design > Custom CSS

.header-menu-nav-folder[data-folder="root"]>div:first-child {
    display: flex;
    flex-direction: column-reverse;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.