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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 7 months later...
  • 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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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

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.