Jump to content

Transparent to filled header

Go to solution Solved by SquareRefresh,

Recommended Posts

Site URL: https://www.satoribeauty.me/

Hiya!

On my client's website we have a black background on the header other than on the homepage where I have it transparent so you can see the image underneath.

The only problem is after you get to the bottom of the page and start scrolling back to the top the header appears and is still transparent which makes it hard to see.

Is it possible to make it so it's transparent when you land on the page, but the black background comes back upon scrolling up?

This is only on the homepage. The other pages are fine.

I'm using this code to make it transparent

.homepage header#header {
  background: transparent;
}

Site password: satoriworking

Link to comment
  • Solution

Hey @Desnoir try change Your code to:

.homepage header#header:not(.shrink) {
  background: transparent;
}

 

SquareRefresh, premium plugins & templates that have an elevated feel.

Plugins: Have your site stand out. 
Templates: Our templates are designed with versatility in mind.
Get Freebies: Sometimes things in life are free. Browser our hand selected free plugins.

Link to comment
5 hours ago, Desnoir said:

This is the coding I have for the dropdown menu transparency

Hey @Desnoir just add next code:

.homepage header#header:not(.shrink) .header-nav-folder-content {
  background-color: transparent !important;
}

 

SquareRefresh, premium plugins & templates that have an elevated feel.

Plugins: Have your site stand out. 
Templates: Our templates are designed with versatility in mind.
Get Freebies: Sometimes things in life are free. Browser our hand selected free plugins.

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.