Jump to content

How do I get my header to scroll back?

Go to solution Solved by tuanphan,

Recommended Posts

I recently changed my homepage to have my gallery appear behind my header, however now my header won't scroll away (despite being set to scroll away) when I scroll down the page.

Does anyone know how to fix this?

www.bungalowid.com

Link to comment
  • Replies 7
  • Views 1k
  • Created
  • Last Reply

Top Posters In This Topic

On 3/15/2024 at 3:13 AM, rteichroew said:

@tuanphan It seems like I can either have my gallery behind my header OR have my header scroll back and not both. I can't seem to get my gallery to extend behind my header regardless of what I do. Can you help me?

Use this CSS code to achieve your request

body.homepage header#header:not(.shrink) {
    background-color: transparent !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

@tuanphan It didn't work. 😞😭

Here's what I have in my Custom CSS currently:

I need to keep the footer, hamburger menu, and h1 code but nothing seems to be working when I add code to try to get my gallery up behind my header.

 

footer a {
text-decoration: none !important;
}

.burger-inner.header-menu-icon-doubleLineHamburger .top-bun {
    height: 3px !important;
    transform: translateY(-10px);
}

.burger-inner.header-menu-icon-doubleLineHamburger .patty {
    background-color: #000 !important;
    height: 3px !important;
    transform: unset !important;
}

.burger-inner.header-menu-icon-doubleLineHamburger .bottom-bun {
    transform: translateY(10px);
    height: 3px !important;
}
.header .header-mobile-layout-logo-center-nav-left .header-display-mobile .header-title {
    text-align: unset;
}
.header-burger {
    display: flex;
}
.header-nav {
    display: none !important;
}
.header--menu-open .header-menu {
    opacity: 1;
    visibility: visible;
}
h1.blog-title {
    display: none !important;
}
body.homepage header#header:not(.shrink) {
    background-color: transparent !important;
}

Link to comment
  • Solution
On 3/18/2024 at 8:49 AM, rteichroew said:

@tuanphan It didn't work. 😞😭

Here's what I have in my Custom CSS currently:

I need to keep the footer, hamburger menu, and h1 code but nothing seems to be working when I add code to try to get my gallery up behind my header.

 

footer a {
text-decoration: none !important;
}

.burger-inner.header-menu-icon-doubleLineHamburger .top-bun {
    height: 3px !important;
    transform: translateY(-10px);
}

.burger-inner.header-menu-icon-doubleLineHamburger .patty {
    background-color: #000 !important;
    height: 3px !important;
    transform: unset !important;
}

.burger-inner.header-menu-icon-doubleLineHamburger .bottom-bun {
    transform: translateY(10px);
    height: 3px !important;
}
.header .header-mobile-layout-logo-center-nav-left .header-display-mobile .header-title {
    text-align: unset;
}
.header-burger {
    display: flex;
}
.header-nav {
    display: none !important;
}
.header--menu-open .header-menu {
    opacity: 1;
    visibility: visible;
}
h1.blog-title {
    display: none !important;
}
body.homepage header#header:not(.shrink) {
    background-color: transparent !important;
}

Don't remove these code.

Add this code under

body.homepage article section:first-child {
    padding-top: 0px !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

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.