Jump to content

Change colour of mobile header logo only.

Recommended Posts

Hey guys, 

So i'm looking to try and change only the colour of my mobile header. 

Its white when on desktop view and unfortunately when this carries over to mobile it gets lost in the background colour so i'd like to see if we can make just the mobile header logo black. 

Any custom CSS to do this? 

White/black files attached below. 

Many thanks 🙂 

Website URL is: https://www.yangjewellery.xyz

bannerforweb(white).png

blackV.png

Edited by Apples444
webisite url wasn't included
Link to comment

Can you share your website URL?

This is easily achievable with a CSS filter.

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
On 2/8/2023 at 6:35 AM, Apples444 said:

Oops, website url is: 

https://www.yangjewellery.xyz/

Add to Design > Custom CSS

/* Mobile Logo */
img.Mobile-bar-branding-logo {
    filter: invert(1);
    -webkit-filter: invert(1);
}

 

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

Amazing, that worked a treat for the mobile issue. 

Any ideas for how to fix it for the desktop pages where the main logo is hitting a white background- pretty much any page thats not the homepage eg. shop all, contact etc,. etc ??

I really appreciate the help with this one 🙂 

Link to comment
On 2/13/2023 at 6:05 AM, Apples444 said:

Amazing, that worked a treat for the mobile issue. 

Any ideas for how to fix it for the desktop pages where the main logo is hitting a white background- pretty much any page thats not the homepage eg. shop all, contact etc,. etc ??

I really appreciate the help with this one 🙂 

To fix this, you need to add code to Page Header (Each page will have a Page Header)

<style>
  .Header-branding-logo {
    filter: invert(1);
    -webkit-filter: invert(1);
}
</style>

Disable Ajax Loading (Design > Site Styles) if the code works on reload only

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.