Jump to content

menu disappearing in mobile

Recommended Posts

hello, i am using the following code to change the color of my site title and navigation on my home page:

/* change logo color home page */ 
#collection-636357ca50701827c3d8846a .Header-branding {
  filter: invert(0.65);
}
#collection-636357ca50701827c3d8846a
#collection-6259fd32eef5817d8af2cdd7  .Header-nav-item {
  color: #6a4b37;
}

this is working great in desktop, but unfortunately i cannot see the site title or navigation in mobile view. can anyone help me fix this?

thank you!

(i do not know if any of the other code in my css is impacting this so i will list it all here just in case that is helpful:)

/* remove underline from hyperlinks */

a{
  border-bottom: none !important;
}

/* remove hyphens from headings */
p, h1, h2 {
  -webkit-hyphens: manual !important;
     -moz-hyphens: manual !important;
      -ms-hyphens: manual !important;
          hyphens: manual !important;
}

/* accordian block full width */
.sqs-block-accordion .accordion-item__description {
  max-width: unset !important;
  width: 100%;
}

/* remove mobile bar */
.Mobile-bar.Mobile-bar--top {
    position: absolute !important;
    background-color: transparent;
    z-index: 99999;
}

/* Mobile remove white bar */
@media screen and (max-width:640px) {

.Mobile-bar.Mobile-bar--bottom {
    display: none;
}}

/* Desktop - Site Title */

.Header-branding:after, a.Mobile-bar-branding:after {
    content: "empathy stories";
    display: block;
    color: #fff;
    font-family: 'quasimoda';
    font-weight: 400;
    font-size: 34px;
    letter-spacing: .28em;
    line-height: 1em;
padding-left: 16px;
}

a.Header-branding, a.Mobile-bar-branding {
    display: flex;
    align-items: center;
}
@media screen and (max-width:640px) {
    a.Mobile-bar-branding:after {
        font-size: 20px;
    }
}

/* Mobile Logo size */
img.Mobile-bar-branding-logo {
    width: 25px;
}

/* Mobile Menu */
.Mobile-overlay-menu {
    width: 100% !important;
}

nav.Mobile-overlay-nav.Mobile-overlay-nav--primary {
    margin-left: 65px;
    margin-top: 20px;
}

/* blog logo */
body[class*="type-blog"].view-item {
a.Header-branding, a.Mobile-bar-branding {
    filter: invert(1);
    -webkit-filter: invert(1);
}}

/* Mobile */
@media screen and (max-width:640px) {
main.Index>section:first-child {
    height: 100vh !important;
}}

/* change logo color connect page */ 
#collection-6259fd32eef5817d8af2cdd7 .Header-branding {
  filter: invert(0.65);
}

#collection-6259fd32eef5817d8af2cdd7  .Header-nav-item {
  color: #6a4b37;
}

/* change logo color home page */ 
#collection-636357ca50701827c3d8846a .Header-branding {
  filter: invert(0.65);
}
#collection-636357ca50701827c3d8846a .Header-nav-item {
  color: #6a4b37;
}

 

Link to comment

oops, typo:

i am using the following code to change the color of my site title and navigation on my home page:

/* change logo color home page */ 
#collection-636357ca50701827c3d8846a .Header-branding {
  filter: invert(0.65);
}
#collection-636357ca50701827c3d8846a  .Header-nav-item {
  color: #6a4b37;
}

Link to comment

also, once that is sorted out i'd like to change the opacity of the color that moves over the screen when viewing the navigation options in mobile. i'd like it to be more opaque but i do not know where to change that.

thank you!

Link to comment

Hi @fc1, I can't actually see the problem that you're reporting here, can you share a few screenshots?

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

hi @Ziggy thanks for taking a look

the website is empathystories.org

here is a screen shot of the home page where the site title and navigation are not visible on mobile

and a screen shot of another page where the site title and navigation are visible on mobile

221103_IMG_6897.jpg

221103_IMG_6898.jpg

Link to comment

You need this CSS on the pages that do not have a image at the top:

.Mobile-bar.Mobile-bar--top {
    filter: invert(0.65);
}

 

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

You can target individual page with this CSS by either using page IDs:

This method for finding IDs and then the code below:

#collection-this-is-your-first-page, #collection-this-is-your-second {
  .Mobile-bar.Mobile-bar--top {
    filter: invert(0.65);
 }
}

Or place this code in the individual page header code injection for the pages you want the inverted logo:

<style>
.Mobile-bar.Mobile-bar--top {
    filter: invert(0.65);
}
</style>

 

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

@Ziggy that worked thanks so much!

are you able to advise on the 2nd art of the question? i'll attach a screen shot so you can see. i want the orange overlay to be more opaque so the background doesn't interfere with reading the mobile navigation dropdown menu.

thank you!

On 11/3/2022 at 12:25 AM, fc1 said:

also, once that is sorted out i'd like to change the opacity of the color that moves over the screen when viewing the navigation options in mobile. i'd like it to be more opaque but i do not know where to change that.

thank you!

 

IMG_7070.jpg

Link to comment
On 11/6/2022 at 11:12 AM, fc1 said:

that worked thanks so much!

are you able to advise on the 2nd art of the question? i'll attach a screen shot so you can see. i want the orange overlay to be more opaque so the background doesn't interfere with reading the mobile navigation dropdown menu.

thank you!

 

IMG_7070.jpg

Have you solved it yet?

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 11/11/2022 at 2:32 AM, fc1 said:

hi @tuanphan no, haven't solved the 2nd part of the question yet

do you have a solution?

thanks!

Add to Design > Custom CSS

.Mobile-overlay-menu {
    background-color: rgba(250,152,5,.9) !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

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.