Jump to content

Removing hamburger menu for mobile and having links displayed at the top instead

Recommended Posts

Add to Design > Custom CSS

/* Force desktop menu on Tablet - Version 1 */
@media screen and (max-width:991px) {
.header-display-desktop {
    display: flex !important;
}
.header-display-mobile {
    display: none;
}
.header-burger {
    display: none;
}
.header-nav {
    display: flex !important;
}
.header-nav {
    display: flex !important;
    flex: 70% !important;
    justify-content: flex-end;
    width: 70% !important;
}
.header-title {
    flex: 50% !important;
}
}

 

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
  • 6 months later...
On 4/25/2022 at 2:05 AM, visionsbyfurks said:

How do I increase the spacing between 2 navigation text links with this code, ONLY on mobile please? @tuanphan

Add this code under

@media screen and (max-width:767px) {
div.header-nav-item:first-child {
    margin-right: 40px;
}
}

 

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
  • 7 months later...
On 11/30/2022 at 11:29 PM, Roconnor said:

Hello, I have added this custom css, but it made the cart icon appear double, any way to fix this?

Screen Shot 2022-11-30 at 11.29.11 AM.png

What is site url?

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
  • 2 months later...

Sorry to be resurrecting an old thread, but I've just tried this code and get the same result with two shopping carts on mobile. Still building the site so it's password protected 

EDIT - I have two stores set up - one for service and one for product as I want the links to apply in the navigation. Could this be causing it?

https://caribou-recorder-j7ex.squarespace.com

password `jYTj+W6Sx

Any help appreciated

Edited by vinniemac
Link to comment
On 3/2/2023 at 4:56 PM, vinniemac said:

Sorry to be resurrecting an old thread, but I've just tried this code and get the same result with two shopping carts on mobile. Still building the site so it's password protected 

EDIT - I have two stores set up - one for service and one for product as I want the links to apply in the navigation. Could this be causing it?

https://caribou-recorder-j7ex.squarespace.com

password `jYTj+W6Sx

Any help appreciated

Use this new code

/* Force desktop menu on Tablet - Version 1 */
@media screen and (max-width:991px) {
.header-display-desktop {
    display: flex !important;
}
.header-display-mobile {
    display: none;
}
.header-burger {
    display: none;
}
.header-nav {
    display: flex !important;
}
.header-nav {
    display: flex !important;
    flex: 70% !important;
    justify-content: flex-end;
    width: 70% !important;
}
.header-title {
    flex: 50% !important;
}
    .showOnMobile .header-actions-action.header-actions-action--cart {
    display: none;
}
}

 

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
On 3/9/2023 at 6:03 PM, vinniemac said:

That fixed it! Thanks Tuanphan

Could it be modified to have the navigation centred with each item on a separate line? 

Vinnie

What should it look like?

image.png.fae3d8d25586f7d7dac9e61dfc89af6f.png

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
On 3/14/2023 at 7:42 PM, vinniemac said:

What I'm trying to achieve is each navigation item on a separate line

Workshops

Buy Prints

Galleries

etc etc

Text left justified, but centred between the logo and the shopping cart icons.

Use this new code

/* Force desktop menu on Tablet - Version 1 */
@media screen and (max-width:991px) {
.header-display-desktop {
    display: flex !important;
}
.header-display-mobile {
    display: none;
}
.header-burger {
    display: none;
}
    .header-nav nav {
        flex-direction: column;
    }
.header-nav {
    display: flex !important;
    flex: 70% !important;
    justify-content: flex-end;
    width: 70% !important;
}
.header-title {
    flex: 50% !important;
}
    .showOnMobile .header-actions-action.header-actions-action--cart {
    display: none;
}
}

 

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.