Theme Debut sticky header is overlaping the page content and plugin features

Solved
Roombles
Tourist
10 0 0

HI everyone, 

i've use this code to get the sticky header for the debut theme:

#SearchDrawer {
  z-index:1001;
}

.site-header {
  position: fixed;
  z-index:1000;
  left:0;
  right:0;
  -webkit-box-shadow:0px 2px 4px 0px rgba(0,0,0,.1);
  -moz-box-shadow:0px 2px 4px 0px rgba(0,0,0,.1);
  -ms-box-shadow:0px 2px 4px 0px rgba(0,0,0,.1);
  -o-box-shadow:0px 2px 4px 0px rgba(0,0,0,.1);
  box-shadow:0px 2px 4px 0px rgba(0,0,0,.1);
}

#PageContainer {
  padding-top: 200px;
}

@media screen and (max-width: 749px) {
#PageContainer {
  padding-top: 70px;
}
}

 

Now i face the issue, that the sticky header is overlaping site elements. 

You can see that on different pages, part of the elements and plugin elements disappear behind the header.

How can i fix that?

https://roombles.live

Thats the link to the website.

Thank you,

0 Likes
Amarjyoti
Excursionist
23 10 24

Hey @Roombles,

Replace the CSS you have added for .site-header with the below code and let me know if it works for you.

#shopify-section-header {
    position: sticky;
    top: 0;
    z-index: 1001;
    -webkit-box-shadow:0px 2px 4px 0px rgba(0,0,0,.1);
    -moz-box-shadow:0px 2px 4px 0px rgba(0,0,0,.1);
    -ms-box-shadow:0px 2px 4px 0px rgba(0,0,0,.1);
    -o-box-shadow:0px 2px 4px 0px rgba(0,0,0,.1);
    box-shadow:0px 2px 4px 0px rgba(0,0,0,.1);
}

 
Thank you!!

Amarjyoti | I'm here to help and share some insights. Not looking for work.
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
Roombles
Tourist
10 0 0

@Amarjyoti  Thank you for the message! 

 

i did replace it but now i have a white space at the bottom of the header. (Screenshot attached)

 

Any idea what to do?

 

Bildschirmfoto 2021-08-05 um 17.32.25.png

 

Thanks

0 Likes
Amarjyoti
Excursionist
23 10 24

This is an accepted solution.

@Roombles I guess some JS code is adding the space through padding. The quick fix is just to override that padding through CSS.
Just put the below code at the end of your css file and this should do the trick.

.page-container {
  padding-top: 0 !important;
}

 

Amarjyoti | I'm here to help and share some insights. Not looking for work.
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
Roombles
Tourist
10 0 0

yes that worked for me! Thank you very much

0 Likes