Jump to content

Invert logo only when clicking mobile menu in one specific page

Recommended Posts

Site URL: https://cadimat.squarespace.com/inicio

Hi,

I need help!

 

I’ve managed to change my logo to white in a specific page and it looks great on desktop.

However, because I’m using a light mobile menu, the logo isn’t visible when clicking the mobile menu on that specific page. 

Is it possible to leave the white logo on the page but invert it only when clicking on the menu mobile menu an only for this specific page? Ideally, I would need to apply this change to cart and hamburger too.

 

The page where I need to make the changes is: https://cadimat.squarespace.com/inicio

 

I appreciate any help.

Link to comment
4 hours ago, Begona said:

Site URL: https://cadimat.squarespace.com/inicio

Hi,

I need help!

 

I’ve managed to change my logo to white in a specific page and it looks great on desktop.

However, because I’m using a light mobile menu, the logo isn’t visible when clicking the mobile menu on that specific page. 

Is it possible to leave the white logo on the page but invert it only when clicking on the menu mobile menu an only for this specific page? Ideally, I would need to apply this change to cart and hamburger too.

 

The page where I need to make the changes is: https://cadimat.squarespace.com/inicio

 

I appreciate any help.

Hi @Begona,

You can try adding to Home > Design > Custom Css

@media screen and (max-width: 767px) {
  /*style for logo when openning menu*/
  .header--menu-open .header-mobile-logo img {
    filter: invert(0);
    -webkit-filter: invert(0);
  }
  /*style for close button when openning menu*/
  .header--menu-open .burger-inner .top-bun,
  .header--menu-open .burger-inner .bottom-bun {
    background-color: #000 !important;
  }
}

Let me know how it works on your site

Press 👍 or mark this answer as solution to help another one too

Edited by bangank36
Update for close button also

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment

My testing result

image.png.4df59d8b71ece493711080f80655c9d4.png

 

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
29 minutes ago, bangank36 said:

Hi @Begona,

You can try adding to Home > Design > Custom Css

@media screen and (max-width: 767px) {
  /*style for logo when openning menu*/
  .header--menu-open .header-mobile-logo img {
    filter: invert(0);
    -webkit-filter: invert(0);
  }
  /*style for close button when openning menu*/
  .header--menu-open .burger-inner .top-bun,
  .header--menu-open .burger-inner .bottom-bun {
    background-color: #000 !important;
  }
}

Let me know how it works on your site

Press 👍 or mark this answer as solution to help another one too

It's just what I needed!

Thank you sooo much, @bangank36!!

Link to comment
15 minutes ago, Begona said:

The only detail is that it's not working on some tablets.

Can you help me with the correct media query so it works for both mobile and tablet @bangank36?

Surely, you can implement it by increasing the breakpoint in my previous code

Change (max-width: 767px) to (max-width: 1024px)

Hope it can help you

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment

I 've checked again and found that it is not necessary to set breakpoint for your issue.

Just

/*style for logo when openning menu*/
.header--menu-open .header-mobile-logo img {
  filter: invert(0);
  -webkit-filter: invert(0);
}
/*style for close button when openning menu*/
.header--menu-open .burger-inner .top-bun,
.header--menu-open .burger-inner .bottom-bun {
  background-color: #000 !important;
}

Hope it can clean your css code 🙂

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. 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.