lookkook Posted May 26, 2022 Posted May 26, 2022 Site URL: https://lettuce-azalea-k7l4.squarespace.com/ Hi! I am trying to get my footer to adopt the background of the page and also have it be fixed. Is this possible since the footer is its own block? I am trying to practice recreating this site in Squarespace: https://toqa.tv/ This is mine: https://lettuce-azalea-k7l4.squarespace.com/ (pw: footerhelp)
tuanphan Posted May 26, 2022 Posted May 26, 2022 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!)
lookkook Posted May 28, 2022 Author Posted May 28, 2022 Hi @tuanphan I added that, but it didn't seem to do anything for the homepage. Am I missing something?
tuanphan Posted May 29, 2022 Posted May 29, 2022 I thought your site is 7.1. Use this new code /* Footer transparent */ body.homepage footer.Footer { position: absolute; bottom: 0; left: 0; z-index: 999; width: 100%; 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!)
ellipon Posted April 26, 2023 Posted April 26, 2023 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!
tuanphan Posted April 29, 2023 Posted April 29, 2023 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; } AshwinG 1 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!)
JacobRosenvinge Posted October 10, 2023 Posted October 10, 2023 This code has helped me great - but is only working on the frontpage. Is it possible to make it work on all pages?
tuanphan Posted October 13, 2023 Posted October 13, 2023 On 10/11/2023 at 3:25 AM, JacobRosenvinge said: This code has helped me great - but is only working on the frontpage. Is it possible to make it work on all pages? Just remove body.homepage from the code 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!)
JacobRosenvinge Posted October 13, 2023 Posted October 13, 2023 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; }
Web_Solutions Posted October 13, 2023 Posted October 13, 2023 (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). Edited October 15, 2023 by Web_Solutions tuanphan, JacobRosenvinge and Ainul 2 1 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.
hannahnowlan Posted March 23 Posted March 23 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
tuanphan Posted March 26 Posted March 26 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? 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!)
tuanphan Posted March 31 Posted March 31 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!)
hannahnowlan Posted April 1 Posted April 1 Thanks @tuanphan this code works great. Do you have a similar code to target specific footer sections on other pages (not the homepage) transparent too?
tuanphan Posted April 3 Posted April 3 On 4/1/2024 at 4:26 PM, hannahnowlan said: Thanks @tuanphan this code works great. Do you have a similar code to target specific footer sections on other pages (not the homepage) transparent too? You can remove .homepage from the code 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!)
maboli Posted July 19 Posted July 19 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
tuanphan Posted July 20 Posted July 20 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!)
maboli Posted July 22 Posted July 22 (edited) Perfect! Any ideas on the mobile menu code, so it's full screen on mobile but still half on desktop? Edited July 22 by maboli
tuanphan Posted July 25 Posted July 25 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!)
maboli Posted July 30 Posted July 30 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; } }
tuanphan Posted August 2 Posted August 2 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!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment