jmerrill Posted December 15, 2023 Posted December 15, 2023 I'd like to hide my existing site footer on certain selected pages and make the section just above that hidden footer fixed. URL: upliftingme.co
Ziggy Posted December 15, 2023 Posted December 15, 2023 You can use this as code injection to hide the footer on select pages: <style> #footer-sections { display:none; } </style> What do you mean by fixed? 3 hours ago, jmerrill said: make the section just above that hidden footer fixed. Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com Hire me on Upwork! 📈 SEO Space (Referral link) Ⓜ️ Will Myers' Plugins & Tutorials (Referral link) 🔌 Ghost Squarespace Plugins (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) ☕ Did I help? Buy me a coffee?
jmerrill Posted December 15, 2023 Author Posted December 15, 2023 @Ziggy Thanks for the code! Here's some additional info: I'm creating lessons pages (don't ask me why I'm not using the built-in Courses), which you can see here: https://upliftingme.co/lesson-1-claude-monet I've hidden the header and footer on each of these pages and would like to have the buttons shown at the bottom of the pages display as fixed - meaning sticking "sticky" to the bottom with the z-index being 100 (on top of everything else).
Solution Ziggy Posted December 15, 2023 Solution Posted December 15, 2023 Try using the style code in header code injection for the "course" pages: <style> #footer-sections { display:none; } .page-section:last-child { position: fixed !important; bottom: 0px !important; left:0px !important; right:0px !important; z-index: 9999; } </style> jmerrill and tuanphan 2 Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com Hire me on Upwork! 📈 SEO Space (Referral link) Ⓜ️ Will Myers' Plugins & Tutorials (Referral link) 🔌 Ghost Squarespace Plugins (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) ☕ Did I help? Buy me a coffee?
jmerrill Posted December 15, 2023 Author Posted December 15, 2023 (edited) Beautiful!!! Thank you @Ziggy Edited December 15, 2023 by jmerrill Ziggy 1
Ziggy Posted December 15, 2023 Posted December 15, 2023 Just now, jmerrill said: Beautiful!!! Thank @Ziggy That code targets the last section of the page, so make sure your sticky section is at the end of the page. jmerrill 1 Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com Hire me on Upwork! 📈 SEO Space (Referral link) Ⓜ️ Will Myers' Plugins & Tutorials (Referral link) 🔌 Ghost Squarespace Plugins (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) ☕ Did I help? Buy me a coffee?
jmerrill Posted December 15, 2023 Author Posted December 15, 2023 yep, tried it - works beautifully! Ziggy 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment