Jump to content

Need code to hide header logo on homepage until scroll

Recommended Posts

Posted (edited)

Site URL: https://algae-lute-kkft.squarespace.com/
Password: lucid

Hi, on my homepage I'm displaying my logo large over an image so I want to hide the logo from the website header, but after you scroll past the first image I want it to reappear in the header. I've tried the below code - but it only makes it disappear completely. Any help much appreciated! Thanks

.header-title-logo img {
    visibility: hidden;
}
.shrink .header-title-logo img {
    visibility: visible;
}

Edited by JessicaWare
Posted

Please share the site’s URL in your post. It isn't included in the post by default.

Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.

Posted
1 hour ago, JessicaWare said:

Site URL: https://algae-lute-kkft.squarespace.com/

Hi, on my homepage I'm displaying my logo large over an image so I want to hide the logo from the website header, but after you scroll past the first image I want it to reappear in the header. I've tried the below code - but it only makes it disappear completely. Any help much appreciated! Thanks

.header-title-logo img {
    visibility: hidden;
}
.shrink .header-title-logo img {
    visibility: visible;
}

Your website is private now. Make it password protected and share the password. 
https://support.squarespace.com/hc/en-us/articles/205815528-Site-wide-passwords#toc-set-a-site-wide-password

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.


 

Posted
46 minutes ago, JessicaWare said:

Sorry - url and password now added! 

Follow the image instruction and make the header Fixed position enable. 

Screenshot_54.png

Screenshot_55.png

Screenshot_56.png

Screenshot_59.png

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.


 

Posted

@Web_Solutions amazing - thank you! Is there a way to make the header stay transparent when scrolling? When I scroll the header changes from transparent to have a white background so you can't see the navigation and logo when they are white.

Also is it possible to only make this happen on the homepage? So on all other pages the logo in the header displays straight away?

Thanks

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.