JessicaWare Posted January 23 Posted January 23 Site URL: https://algae-lute-kkft.squarespace.com/ Password: lucid Hi, I've used the below code as I want to hide my header logo on the homepage (as I'm displaying my logo large over an image and don't want it to be duplicated in the header). However on all other website pages my logo has also disappeared in the header but I want it to display for them. Is it possible to hide only on the homepage but keep as normal on all other pages? Thanks! .header-title-logo img { visibility: hidden; } .shrink .header-title-logo img { visibility: visible; }
Solution tuanphan Posted January 23 Solution Posted January 23 Change your code to this body.homepage { .header-title-logo img { visibility: hidden; } .shrink .header-title-logo img { visibility: visible; }} 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!)
JessicaWare Posted January 30 Author Posted January 30 @tuanphan Do you know if it's possible on my homepage only, to have the header menu appear after you start scrolling but have it transparent? At the moment if I unselect 'fixed position' in the settings, the header then appears when scrolling but it has a white background. Any help much appreciated!
tuanphan Posted January 30 Posted January 30 27 minutes ago, JessicaWare said: @tuanphan Do you know if it's possible on my homepage only, to have the header menu appear after you start scrolling but have it transparent? At the moment if I unselect 'fixed position' in the settings, the header then appears when scrolling but it has a white background. Any help much appreciated! You can use this CSS code body.homepage header#header.shrink { 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!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment