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

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;
}
}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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: SQSP User for 17 yrs. Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF Digital, building Squarespace Extensions to supercharge your commerce website. 
Content: Links in my posts may refer to SF Digital products or may be affiliate links.
If my advice helped, you can thank me by clicking one of the feedback emojis below. I love coffee too.

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.