Jump to content

Transparent Fixed Footer

Recommended Posts

Posted

Try adding to Design > Custom CSS

/* Footer transparent */
body.homepage {
    position: relative;
}
body.homepage footer#footer-sections {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 999;
    width: 100%;
}
body.homepage footer.sections section, body.homepage footer.sections .section-background {
    background: transparent;
}

 

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!)

  • 4 weeks later...
  • 10 months later...
Posted
On 4/26/2023 at 9:41 AM, ellipon said:

Hi @tuanphan ! 

Working in 7.1

Have tried the above code and some others floating around the internet and can't seem to get the transparent background to work (fixed footer works no problem). Any thoughts? 

site url: https://ukulele-chiton-zbz6.squarespace.com/
pass: sqspace

Thanks!

Change last code

body.homepage footer.sections section, body.homepage footer.sections .section-background {
    background: transparent;
}

to this

body.homepage footer.sections section, body.homepage footer.sections .section-background, body.homepage footer.sections .section-border  {
    background: 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!)

  • 5 months later...
Posted
10 hours ago, tuanphan said:

Just remove body.homepage from the code

Sorry for being a newcomer here... I removed body.homepage from the code - but now its not working at all...

What did i do wrong?

 

/* Footer transparent */
 {
    position: relative;
}
 footer#footer-sections {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 999;
    width: 100%;
}
 footer.sections section,  footer.sections .section-background,  footer.sections .section-border  {
    background: transparent !important;
}

Posted (edited)
On 10/13/2023 at 6:24 PM, JacobRosenvinge said:

Sorry for being a newcomer here... I removed body.homepage from the code - but now its not working at all...

What did i do wrong?

 

/* Footer transparent */
 {
    position: relative;
}
 footer#footer-sections {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 999;
    width: 100%;
}
 footer.sections section,  footer.sections .section-background,  footer.sections .section-border  {
    background: transparent !important;
}

You should stay the body. You can remove (.homepage). 

Screenshot_245.png

Edited by Web_Solutions

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

  • 2 weeks later...
  • 4 months later...
Posted

Hi, I'd also like my footer to be transparent on all pages to follow colour of each page. I'd tried implementing code 7.1 without .homepage but it doesn't seem to work, instead it tweaks other elements of the footer but not the background colour to tranparent as desired. Any help would be appreciated site URL is landerse.au

Posted
On 3/23/2024 at 12:59 PM, hannahnowlan said:

Hi, I'd also like my footer to be transparent on all pages to follow colour of each page. I'd tried implementing code 7.1 without .homepage but it doesn't seem to work, instead it tweaks other elements of the footer but not the background colour to tranparent as desired. Any help would be appreciated site URL is landerse.au

What is password?

image.png.3b0544094e45e154dff78bfb22800d86.png

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!)

Posted
On 3/29/2024 at 3:48 PM, hannahnowlan said:

Hi @tuanphan 

Password: red

Use this CSS code

/* Footer transparent */
body.homepage {
    position: relative;
}
body.homepage footer#footer-sections {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 999;
    width: 100%;
}
body.homepage footer.sections section, body.homepage footer.sections .section-background {
    background: transparent;
}
 body.homepage .section-border * {
     opacity: 0;
 }

 

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!)

  • 3 months later...
Posted
23 hours ago, maboli said:

Hi, I am wanting to make the footer transparent on my home page over the gallery, I have done this already for the header. I have tried the above with no result.

I would also like the burger menu to be full screen on the mobile but still half on the desktop?

https://bellflower-opossum-txyn.squarespace.com/
studionh_nh

Use this new code

/* Footer transparent */
body.homepage {
    position: relative;
}
body.homepage footer#footer-sections {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 999;
    width: 100%;
}
body.homepage footer.sections section, body.homepage footer.sections .section-background, body.homepage footer.sections .section-border {
    background: transparent;
}
 body.homepage .section-border * {
     opacity: 0;
 }

 

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!)

Posted (edited)

Perfect! Any ideas on the mobile menu code, so it's full screen on mobile but still half on desktop?

Edited by maboli
Posted
On 7/22/2024 at 2:53 PM, maboli said:

Perfect! Any ideas on the mobile menu code, so it's full screen on mobile but still half on desktop?

You can use this CSS code

@media screen and (max-width:767px) {
div.header-menu {
    margin: 0 !important;
    width: 100% !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!)

Posted

I have added a white logo to the menu with the following code. Is there a way that I can edit this so it only on the mobile view?

 

/** Menu Logo When Open**/
.header-title-logo a{
  position:relative;
  &:after{
    background-image:url(https://static1.squarespace.com/static/6697dd31c001b32289c1f3e7/t/66a8ac24c8dbe25f3abe719f/1722330148130/StudioNH_Logotype_White.png);
    opacity:0;
    content:'';
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background-size:contain;
    background-repeat:no-repeat;
    background-position: center center;
    transition: opacity .3s ease;
  }

  body.header--menu-open &:after  {
    opacity:1;
  }
  body.header--menu-open & img  {
    opacity:0;
  }
}

Posted
On 7/30/2024 at 11:07 PM, maboli said:

I have added a white logo to the menu with the following code. Is there a way that I can edit this so it only on the mobile view?

 

/** Menu Logo When Open**/
.header-title-logo a{
  position:relative;
  &:after{
    background-image:url(https://static1.squarespace.com/static/6697dd31c001b32289c1f3e7/t/66a8ac24c8dbe25f3abe719f/1722330148130/StudioNH_Logotype_White.png);
    opacity:0;
    content:'';
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background-size:contain;
    background-repeat:no-repeat;
    background-position: center center;
    transition: opacity .3s ease;
  }

  body.header--menu-open &:after  {
    opacity:1;
  }
  body.header--menu-open & img  {
    opacity:0;
  }
}

Change your code to this

@media screen and (max-width:767px) {
/** Menu Logo When Open**/
.header-title-logo a{
  position:relative;
  &:after{
    background-image:url(https://static1.squarespace.com/static/6697dd31c001b32289c1f3e7/t/66a8ac24c8dbe25f3abe719f/1722330148130/StudioNH_Logotype_White.png);
    opacity:0;
    content:'';
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background-size:contain;
    background-repeat:no-repeat;
    background-position: center center;
    transition: opacity .3s ease;
  }

  body.header--menu-open &:after  {
    opacity:1;
  }
  body.header--menu-open & img  {
    opacity:0;
  }
}
}

 

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!)

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.