Jump to content

Change logo and colour of nav on homepage only?

Go to solution Solved by tuanphan,

Recommended Posts

Hi there,

Is it possible to change the colour of the logo and the navigation/social media on the homepage only? I ask because I'd like to change the background image from time to time. At the moment the black-on-white works fine but if I change the image to a darker one, I'd like to be able to reverse the colours of the navigation etc for standout.

www.peterotoole.ie

Thanks!

Screenshot 2023-06-07 at 3.54.22 p.m..png

Link to comment

Add to Design > Custom CSS

/* Homepage Header */
body.homepage header#header img {
    content: url(https://cdn.pixabay.com/photo/2023/05/28/13/15/helicopter-8023696_640.jpg);
}
body.homepage div.header-nav-item a {
    color: #f1f !important;
}
body.homepage header#header svg {
    fill: #f1f;
}

 

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 6/9/2023 at 5:35 AM, tuanphan said:

Add to Design > Custom CSS

/* Homepage Header */
body.homepage header#header img {
    content: url(https://cdn.pixabay.com/photo/2023/05/28/13/15/helicopter-8023696_640.jpg);
}
body.homepage div.header-nav-item a {
    color: #f1f !important;
}
body.homepage header#header svg {
    fill: #f1f;
}

 

Thanks for this Tuanphan!  The only thing is the mobile navigation '+' menu icon is still the darker colour as you can see in the screenshot below. Can I change this to white as well, please? Thanks

Screenshot 2023-06-16 at 9.58.59 p.m..png

Link to comment
  • Solution

Add this code under

body.homepage.header--menu-open header#header svg.icon--cart {
    fill: black !important;
}
body.homepage.header--menu-open header#header .burger-inner>div {
    background-color: black !important;
}
body.homepage.header--menu-open header#header img {
    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

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.