Jump to content

How to change color of logo on mobile menu 7.1?

Recommended Posts

Hi,

I want to change the color of the logo only when the navigation on mobile is open. Currently is black I would like it to be white.

Also I want to change the shopping cart icon to white when the menu is open only. Currently what the X is doing now.

www.gypset.com
password: gypset2020

Link to comment
  • Replies 9
  • Created
  • Last Reply

Top Posters In This Topic

  • 1 year later...
On 7/18/2020 at 8:16 AM, tuanphan said:

Add to Home > Design > Custom CSS

@media screen and (max-width:767px) {
.header--menu-open {
.header-title-logo img {
    filter: invert(1);
}
svg.icon.icon--cart {
    stroke: white !important;
}
}
}

 

Hi Tuan, I tried this code but couldn't achieve nothing. I have different color logos throughout the website and im trying to have the same in the mobile version.

Link to comment
On 10/11/2021 at 10:55 PM, Gueifao said:

Hi Tuan, I tried this code but couldn't achieve nothing. I have different color logos throughout the website and im trying to have the same in the mobile version.

Hi. What is your site url?

 

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 10/13/2021 at 9:23 PM, Gueifao said:

miaskin.co

Try this new code

@media screen and (max-width:767px) {
.header--menu-open {
.header-mobile-logo img {
    filter: invert(1);
}
svg.icon.icon--cart {
    stroke: white !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
  • 1 year later...
On 7/18/2020 at 8:16 AM, tuanphan said:

Add to Home > Design > Custom CSS

@media screen and (max-width:767px) {
.header--menu-open {
.header-title-logo img {
    filter: invert(1);
}
svg.icon.icon--cart {
    stroke: white !important;
}
}
}

 

Hi, anyone?

Is it possible to have this code work for just the homepage alone?

I have all other pages with a white background and on using this code they all have the header logo within them (which was black) reverted to white. I want the logo in the homepage to invert to black when the burger menu is clicked and revert to white when it's back to the homepage display. 

Link to comment
5 minutes ago, ikennajn said:

Is it possible to have this code work for just the homepage alone?

Yes, prefix your selector (on line 2) with the .homepage class.

About me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥.
Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. 
Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links.
Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional.

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.