Jump to content

Hide Footer on Select Pages and Make Next Section Above it Fixed

Go to solution Solved by Ziggy,

Recommended Posts

Posted

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?

Posted

@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
Posted

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>

 

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?

Posted
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.

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?

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.