Jump to content

On mobile: hamburger missing, site title not changing size and transparency on menu

Recommended Posts

Hello, 

https://tuba-synthesizer-h36d.squarespace.com (PW: 12345)

On this site above, none of the CSS I've searched in the forum has worked to solve the following three issues in mobile:

1. The hamburger (or +) icon is invisible. If I tap the upper right corner, the menu appears, but cannot get the + icon to appear.  I've tried the z-index hack.

2. The menu background is transparent for some reason. I'd like it to be blue. What do I target?

3.  The site title is too large, and breaks into two lines on mobile. I've added CSS for this, but it's still showing up larger than the site font.

Thank you in advance! 

Screenshots from an iPhone 13 Mini.

 

IMG_7673.PNG

IMG_7674.PNG

Edited by tokonoma
more info
Link to comment

@tokonoma  There's CSS added that sets your entire header as transparent, probably because of the gradient background you've got.

@media only screen and (max-width: 640px) {
  header#header * {
    font-family: 'CSB-Italic';
    font-size: 1.6rem !important;
    background-color: transparent !important;
  }
}
header#header * {
  font-family: 'CSB-Italic';
  font-size: 2rem !important;
  background-color: transparent !important;
}

If you remove both of the background-color lines from the above code this fixes it and the X will show. When you remove the transparency, the heading in the top section will also be hidden underneath the mobile menu when clicked, instead of showing through and overlapping with the mobile links.

For the site title, you can adjust this in Site Styles:

  1. In site styles, go to Fonts
  2. Click Assign Styles
  3. Scroll down to the Header section
  4. Click Mobile Site Title
  5. Adjust size

To change the colour of your mobile menu:

  1. Hover over the header and click Edit Site Header
  2. Click the mobile icon
  3. Click Overlay Menu
  4. Click Colours and choose the one with a blue background

If this helped you, please like or mark my solution as answer so others can scroll to it quickly 👆

Cass Aggett is a Squarespace website designer for go-getting women – no matter what stage of business.

WEBSITEINSTAGRAM

 

Link to comment

Hi! Thanks for your reply @CassAggett

The menu on mobile is working,  but could you help with targeting the background color  / removing the transparency on mobile menu using CSS? The default color method doesn't work for my site. 

In the screenshot, "Artist forward, purpose driven consulting" is the first section of the site, and should be hidden by a background.

 

 

 

Screen Shot 2023-09-26 at 2.38.23 PM.png

Edited by tokonoma
Clarification
Link to comment
3 hours ago, tokonoma said:

Hi! Thanks for your reply @CassAggett

The menu on mobile is working,  but could you help with targeting the background color  / removing the transparency on mobile menu using CSS? The default color method doesn't work for my site. 

In the screenshot, "Artist forward, purpose driven consulting" is the first section of the site, and should be hidden by a background.

 

 

 

Screen Shot 2023-09-26 at 2.38.23 PM.png

 

You seem to still have multiple instances of code setting the background to transparent. It's now showing as:

@media only screen and (max-width: 640px) {
  header#header :not(.top-bun):not(.patty):not(.bottom-bun) {
    font-family: 'CSB-Italic';
    font-size: 1.6rem !important;
    background-color: transparent !important;
  }
}
header#header :not(.top-bun):not(.patty):not(.bottom-bun) {
  font-family: 'CSB-Italic';
  font-size: 2rem !important;
  background-color: transparent !important;
}

Try to find this in your Custom CSS panel - you may need to search line by line as the codes may not be next to each other. If you remove both of these instances of background-color: transparent !important; it will change the menu overlay to white, which is the colour you've got set in your Lightest 2 / Light Bold site styles - you can change this without CSS in the colour menu of site styles.

 

If you can't find these in your Custom CSS panel , try add this to the very bottom of your code as a last resort. You'll still need to change the Lightest 2 menu overlay colour in site styles to change it from white to blue (or select a different theme colour for your overlay menu from the Edit Site Header settings)

@media only screen and (max-width: 640px) {
  header#header :not(.top-bun):not(.patty):not(.bottom-bun) {
    background-color: var(--menuOverlayBackgroundColor) !important;
  }
}

It's not ideal to have duplicate/conflicting codes, but if it's pasted below the other one it should override it.

Edited by CassAggett

If this helped you, please like or mark my solution as answer so others can scroll to it quickly 👆

Cass Aggett is a Squarespace website designer for go-getting women – no matter what stage of business.

WEBSITEINSTAGRAM

 

Link to comment
  • 3 weeks later...

@CassAggett thanks!

I'm able to target the mobile menu overlay background color (see screenshots), but it also affects the menu / title bar on the rest of the site. I need the menu / title to still remain transparent, but have the mobile menu overlay be a solid color. Anyway to target this specifically? Like below?  

menuOverlayBackgroundColor

Screen Shot 2023-10-16 at 11.24.41 AM.png

Screen Shot 2023-10-16 at 11.24.33 AM.png

Link to comment

@CassAggett

Thanks, the problem (still) is: the main page of the site is a long single scroll, and the background is a gradient that goes from light to dark. So, as soon as you scroll – it doesn't work (screenshot). I need the site title / menu bar on mobile to be transparent, but the the menu overlay (when you click +) to be solid. 

 

 image.thumb.png.e28d41481381c57fb34a350dad8c170c.png

Link to comment
On 10/25/2023 at 11:33 PM, tokonoma said:

Just to follow-up / clarify – is there a way I can target the Menu Overlay on mobile to be a solid color (red screenshot), and keep the Title / Menu Bar transparent (second screenshot).

Screen Shot 2023-10-25 at 12.31.28 PM.png

Screen Shot 2023-10-25 at 12.31.47 PM.png

The site is expired. You can access this link to extend it, then we can check site 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

@tuanphan

 

No, that's not it.

Due to some transparency settings for the gradient background (I think), the main page content (Artist forward, purpose driven...) was appearing with the mobile menu  (Our Expertise / How We Work / Meet Tamar / Contact). 

image.png.4da0aea5a00cb7e281f189a4080a324c.png

 

Then, I tried to add a solid background for the mobile menu (in red, for testing): 

image.png.ba5cb958a378c6caac4d7c84cd4b310e.png

 

BUT – that makes the Site Title when you leave the mobile menu, also red (when it needs to be transparent, to accomodate / scroll with the gradient background), as seen here:

image.png.1151df9deea4f3a5094ee98645cb87cd.png

 

All I want to do is target the mobile menu and give it a solid background color (without it affecting the site title when you leave the menu options).

Link to comment

@tuanphan but it makes the Site Title outside the Mobile Menu a solid background (and that needs to be transparent to accomodate for the gradient background). 

See, in this screenshot. There shouldn't be two shades of blue.

So: 

– I need to target the mobile menu background overlay to be solid
– I need to keep the Site Title bar transparent once you go back to the site

image.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.