Jump to content

Transparent Navigation Bar on Homepage

Recommended Posts

I would like just the homepage of our site to have a transparent header, and to make the navigation text white. I would also like to change the color of the logo at the top left to white if possible, all just on the homepage.

Link to comment
58 minutes ago, Aaron_jag said:

The website is https://mlpc.org!

Hi, try adding this to custom css. You'll have to create a file of your logo where it's white, upload it, then update the code below with the link.

#collection-660ed69adfb20b1a470e3ea0 {
  .header-nav-wrapper a {
    color:#fffff;
  }
  .header-title {
    background-image:url('IMAGE URL HERE');
    background-size: contain;
  } 
  .header-title img{
    opacity:0
  } 
}
Edited by Jia

Please give this a 👍 if it helps. Make sure to quote me or tag me in your reply, otherwise I won't be notified.

Link to comment
1 hour ago, Aaron_jag said:

The website is https://mlpc.org!

Hi, sorry, forgot about the transparent part, here's an updated code:

#collection-660ed69adfb20b1a470e3ea0 {
  .header-background-solid {
    background-color:transparent!important;
  }
  .header-nav-wrapper a {
    color:#fffff;
  }
  .header-title {
    background-image:url('IMAGE URL HERE');
    background-size: contain;
  } 
  .header-title img {
    opacity:0;
  } 
}

Please give this a 👍 if it helps. Make sure to quote me or tag me in your reply, otherwise I won't be notified.

Link to comment
On 4/9/2024 at 7:23 AM, Aaron_jag said:

The custom code did not work. Any other thoughts?

You can use this CSS code

body.homepage .header-background-solid {
    background-color: transparent !important;
}
body.homepage div.header-nav-item>a {
    color: #fff !important;
}

image.thumb.png.dc67f6e6bf4cb643d9738b5278eb1153.png

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 4/16/2024 at 3:21 AM, Aaron_jag said:

This code did not work either. Is there anything else I need to do on squarespace to ensure it works?

Maybe you added code to wrong position. You can move my code to top of CSS box and don't edit anything.

If it still doesn't work, you can send all current code in CSS box, I can check easier

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.