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 me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥. Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links. Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional. 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.