Jump to content

Disabling mobile menu on 7.1

Recommended Posts

I have created a 2 page website in 7.1. I want to disable the mobile breakpoint of 991px and just keep the regular menu bar visible as there is only 1 button to a contact page on there. Does someone have the CSS code to disable the mobile menu in 7.1 since there isn't an option to set it to 0px in the style editor?

Link to comment
  • 2 weeks later...
  • 2 weeks later...

Hey @deirdrep - sorry this answer is a bit late but I am just now hopping back into the forums! Anywho, if you still need the code, this button will keep it active on all breakpoints and hide that hamburger for ya. Hope it helps! And let me know how those margins/paddings look after you try it; depending upon the size of the text in your button we might need to finesse this fit a little... keep me posted! 🙂

 

.header-burger {display: none!important} .header-actions .btn, .header-actions .header-actions-action--cta {display:flex!important; visibility:visible; margin:auto!important; order: 2!important;}

 

🤓 Creator of InsideTheSquare.co
SQUARESPACE CIRCLE LEADER SQUARESPACE EXPERT SQUARESPACE EMPLOYEE EDUCATOR CERTIFIED CUSTOM CODE EXPERT

🗺️ New to Squarespace? Get your free roadmap: insidethesquare.co/roadmap
🙋‍♀️ New to CSS? Learn the basics for free: insidethesquare.co/learn
️ Ready to go pro? Get my custom code collection: insidethesquare.co/css

 

BeccaHarpain.gif.236d6ddd88c7d637645b762799f501a8.gif

 

Link to comment

This worked for me to remove the hamburger from the mobile site...but is there anyway to add navigation menu with page titles? i.e. for mobile version...

|                SITE TITLE               |
|   Page 1    Page 2   Page 3  |

|     [Home Page Content]    |

 

Site is RanchoSylva.com

 

@inside_the_square any ideas?

Edited by LanaRanchOgA
Link to comment
  • 2 weeks later...
  • 1 month later...
On 2/11/2020 at 6:22 PM, LanaRanchOgA said:

This worked for me to remove the hamburger from the mobile site...but is there anyway to add navigation menu with page titles? i.e. for mobile version...

|                SITE TITLE               |
|   Page 1    Page 2   Page 3  |

|     [Home Page Content]    |

 

Site is RanchoSylva.com

 

@inside_the_square any ideas?

Also looking for an answer to this question

Link to comment
  • 1 month later...

@inside_the_square i applied this to my site, the hamburger nav was hidden however it is also hiding the link that was original in the nav.

I noticed on your original post that you mention it may have to do with the margins and padding. Could you elaborate? 

My site isnt yet published, hower I can send over screen grabs if you would like! 

Link to comment
On 6/4/2020 at 2:25 PM, itsmollyjones said:

@inside_the_square i applied this to my site, the hamburger nav was hidden however it is also hiding the link that was original in the nav.

I noticed on your original post that you mention it may have to do with the margins and padding. Could you elaborate? 

My site isnt yet published, hower I can send over screen grabs if you would like! 

Have you solved yet? If no, you can share url, we can check easier.

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
  • 8 months later...
  • 2 months later...
On 5/8/2021 at 3:44 AM, meagangonzales said:

Do you have the code available to disable the mobile style from the whole website? I.E. I want my website to look the same on a phone as it does on a computer.

Do you use SS 7.0 or 7.1?

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 5/10/2021 at 8:35 PM, meagangonzales said:

7.1

Add to Design > Custom CSS

/* force desktop menu on mobile */
@media screen and (max-width:767px) {
.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;
}
}

 

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
4 hours ago, tuanphan said:

Add to Design > Custom CSS


/* force desktop menu on mobile */
@media screen and (max-width:767px) {
.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;
}
}

 

Thank you! Is this code just for the header? I will link all of my pages. I would like the whole website to be disabled, but I will do the most I can if it's not possible.

https://www.viprec.com/

Link to comment
On 5/12/2021 at 8:14 PM, meagangonzales said:

Thank you! Is this code just for the header? I will link all of my pages. I would like the whole website to be disabled, but I will do the most I can if it's not possible.

https://www.viprec.com/

The code for header.

With entire site, complex.

Can you describe in detail the desired layout on all pages? We will try to help as much as we can

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
  • 2 months later...
On 7/26/2021 at 8:38 AM, vjtk said:

Try adidng to Design > Custom CSS

/* Force desktop nav on tablet - version 2 */
@media screen and (min-width:768px) 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
14 hours ago, tuanphan said:

Try adidng to Design > Custom CSS

/* Force desktop nav on tablet - version 2 */
@media screen and (min-width:768px) 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;
}
}

 

I added the code but it did not change the hamburger menu on iPad. 

Link to comment
On 5/12/2021 at 3:32 PM, tuanphan said:

Add to Design > Custom CSS

/* force desktop menu on mobile */
@media screen and (max-width:767px) {
.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;
}
}

 

Hi anh, I tried this and it perfectly forces the desktop menu on mobile, but the cart button appears twice on mobile view probably due to overlap between desktop and mobile menu, is there any way to tweak this code to keep just 1 cart button?

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.