rfrly Posted October 30, 2019 Share Posted October 30, 2019 Hey folks, I'm trying to hide the top footer on a specific page (this one). I've put the following code into the page's header code injection but it only appears to be working when I refresh the page. Any ideas how to make it work first time? Getting the same results in chrome and firefox <style> #footerBlocksTop { display: none !important; } </style> Any help is greatly appreciated. Link to comment
paul2009 Posted October 30, 2019 Share Posted October 30, 2019 If you're using a template that uses Ajax (the newer ones do) then you shouldn't add CSS using code injection like you have above. It won't work unless the page is refreshed. You could disable Ajax (in Site Styles) but you'll lose a bunch of helpful features. It's better to add the code to Custom CSS and refer to the page's Collection ID (#collection-5b1fae8eaa4a996d835b5da1) to limit the effect to that page. I've described how to use the ID here: https://sf.digital/squarespace/how-to-apply-css-to-specific-pages-in-squarespace About: Squarespace Circle Leader since 2017. I value honesty, transparency, diversity and great design ♥.Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™. Content: Links in my posts may refer to SF Digital products or may be affiliate links. Catch up on all the release notes and announcements 2023 [for Circle members only]. There's a public version here too!If I helped, you can thank me by clicking one of the emojis below. If you prefer, you can buy me a coffee.Improve your online store with our extensions. Link to comment
rfrly Posted October 30, 2019 Author Share Posted October 30, 2019 @paul2009 thanks for this Paul. I tried using the Collection ID in Custom CSS but couldn't work out how to hide just #footerBlocksTop? Any idea what I might have been doing wrong? Edit... I think I might have sorted it. Thanks for your help! Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.