Jump to content

Fixed header 7.1

Recommended Posts

Site URL: https://duck-buffalo-k3d3.squarespace.com

Hello!

I'm attempting to keep the header the same color when I scroll.

I would like the header to keep the metal look when scrolling rather than changing to green.

 

Screen Shot 2020-05-04 at 9.05.06 PM.png

Screen Shot 2020-05-04 at 9.05.13 PM.png

 

Here is the Current Code. Appreciate any help!

//Header Image
.header {
  background-image: url("https://static1.squarespace.com/static/5e8ca6472e5c376d3f69a514/t/5e9e0633a2713368e9c28d3f/1587414595997/TIB+-+Metal+Header+Texture+-+v1.png")
}

//Header formatting

@media screen and (max-width: 700px) {
 .sqs-block-horizontalrule
{max-width: 100%}
.sqs-block-content hr {
margin-top: -33px !important;
margin-bottom: -33px !important;
}
 .Main-content { margin-top: -20px !important;
margin-bottom: -82px !important;
}
.sqs-block-html {margin-top: -40px;
  padding-bottom: 0px;
}
  
 }

Link to comment
  • Replies 3
  • Views 526
  • Created
  • Last Reply

Add to Home > design > Custom CSS

.header-announcement-bar-wrapper.black.shrink {
    background-image: url(https://static1.squarespace.com/static/5e8ca6472e5c376d3f69a514/t/5e9e0633a2713368e9c28d3f/1587414595997/TIB+-+Metal+Header+Texture+-+v1.png) !important;
}

 

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
  • 2 weeks later...
On 5/7/2020 at 3:55 AM, tuanphan said:

Add to Home > design > Custom CSS


.header-announcement-bar-wrapper.black.shrink {
    background-image: url(https://static1.squarespace.com/static/5e8ca6472e5c376d3f69a514/t/5e9e0633a2713368e9c28d3f/1587414595997/TIB+-+Metal+Header+Texture+-+v1.png) !important;
}

 

Works on Home Page but Not Others!

Appreciate the help, but unfortunately the problem still occurs on other pages. The header stays the color of the page upon scrolling.

Link to comment
16 hours ago, NoahW said:

Works on Home Page but Not Others!

Appreciate the help, but unfortunately the problem still occurs on other pages. The header stays the color of the page upon scrolling.

try this

.header-announcement-bar-wrapper.shrink {
    background-image: url(https://static1.squarespace.com/static/5e8ca6472e5c376d3f69a514/t/5e9e0633a2713368e9c28d3f/1587414595997/TIB+-+Metal+Header+Texture+-+v1.png) !important;
}

 

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.