JasonLaudat Posted August 31 Share Posted August 31 Hi all, Novice at the whole CSS world, I am trying to get my header background set to transparent on the homepage only but can't seem to get it to work. I tried many codes I could find on various forums but none of them is working for me. I only managed to make it disappear. Any idea? I am also trying to set the whole background image to be clickable with a URL that re-directs to 'https://www.hennesseyarchitect.com/selected-projects'. So far I just added a transparent PNG block but it doesn't fill-up the whole page so the top and bottom of the page aren't clickable Here's the homepage: https://www.hennesseyarchitect.com/ Thanks ! Link to comment
Lesum Posted August 31 Share Posted August 31 @JasonLaudat Hi, You can try this code snippet to display a transparent header background on homepage: #collection-64efb815b57b5255f4dc78f2 header#header { background: transparent !important; } Here's a tutorial you can follow to make the entire section clickable: https://www.will-myers.com/articles/clickable-thumbnail-over-entire-section-in-squarespace-71 If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. Sam Web Developer & Digital Designer ☕ Did you find my contribution helpful? Buy me a coffee? Link to comment
JasonLaudat Posted September 1 Author Share Posted September 1 @Lesum Thanks for your reply ! I had tried this code but unfortunately it's not doing anything for me... I'll check-out the link you sent over for making the whole section clickable, thanks for sharing ! Link to comment
Lesum Posted September 1 Share Posted September 1 (edited) @JasonLaudat I noticed that header background has been set to transparent on your site. Not sure what didn't work. Edited September 1 by Lesum If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. Sam Web Developer & Digital Designer ☕ Did you find my contribution helpful? Buy me a coffee? Link to comment
Solution JasonLaudat Posted September 1 Author Solution Share Posted September 1 @Lesum The code you provided did not work but with some further research, I found the following code that did the trick. body.homepage article section:first-child { padding-top: 0px !important; } body.homepage .header-background-solid { background-color: transparent !important; } Thanks for your help on this ! tuanphan 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment