troyer Posted August 3, 2022 Share Posted August 3, 2022 (edited) Hello, I was trying to remove the header and footer on one page with this string <style> .header, #footer-sections{ display:none !important; } </style> I used code from add block on the footer section. Now I have no header or footer on any of my pages and no way to delete the code from the section. What can be done? Edited August 3, 2022 by troyer Link to comment
Beyondspace Posted August 3, 2022 Share Posted August 3, 2022 Select page id with your element selector to set style only on the page you want Use the following extension to get the right page ID: Squarespace ID Finder How to get Page id: http://recordit.co/qwnj09oNCa Code you can apply PageID .header,PageID #footer-sections{ display:none !important; } tuanphan 1 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
tuanphan Posted August 5, 2022 Share Posted August 5, 2022 First, you can access this link: yourdomain.com/config/safe Replace yourdomain with your real domain, or built-in domain (This link will disable all code in Editing Mode, then footer, header will appear again) Next, you can remove Code Block from Footer Next, to remove header/footer on one page >> Edit that page >> Add a Code Block at top of page > Use this code <style> header#header, #footer-sections{ display:none !important; } </style> lind.will4 1 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!) Link to comment
lind.will4 Posted January 16 Share Posted January 16 @tuanphan OMG! Thank you soooo much! This worked perfectly. Link to comment
Mak111vn Posted August 14 Share Posted August 14 Help! Did not work for me, tried using this .com/config/safe but the deleted header and footer did not appear Link to comment
tuanphan Posted August 17 Share Posted August 17 On 8/14/2024 at 9:56 PM, Mak111vn said: Help! Did not work for me, tried using this .com/config/safe but the deleted header and footer did not appear What is your site url? 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!) 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