Jump to content

Transparent header without using code injection

Go to solution Solved by DangDang,

Recommended Posts

I'm trying to make my header transparent but can only manage to make it transparent lower on the page or when scrolling - when landing on the page or when page is scrolled to the top, the header is solid. See screenshots below, first one is on the homepage before scrolling, second one is the homepage after scrolling down. The second one is how I want it to be.

The header is Fixed>Basic and with the following settings:

With help from this forum, I managed to do this with the following code injected into the header settings of the homepage:
 

<style>

.page-section.gallery-section{padding-top:0px!important;}

</style>


However, that piece of code + the code for making the burger menu only works as injection, and I'm on the personal plan. Since I have no other reasons to switch to the business plan, I'm trying to find a way to do it with other means, only using settings and/or CSS.

Any ideas?

 

Screen Shot 2024-01-23 at 11.27.40.png

 

 

Edited by DangDang
Link to comment
  • Solution

Solved it! Finally found codes in old threads that works for both problems (transparency of header and invert burger menu on home page), thank you @tuanphan

If anyone has a similar problem, here you go:

Transparent header:

header#header {
    background-color: transparent !important;
}
article section:first-child {
    padding-top: 0px !important;
}

White burger menu on homepage:
 

body.homepage .burger-inner>div {
    background: white !important;
}
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.