Jump to content

How to make header dynamic on homepage, but solid on the others

Go to solution Solved by Ziggy,

Recommended Posts

I'm currently working on a site where I want the homepage to have a full bleed slideshow on the whole page, but for the rest of the pages I want the header to be solid (that is, to be it's own section with white background)

I've managed to make the homepage how I want it to be, but the problem is that I can't figure out how to make the other pages in a different way.

Site: https://caterpillar-parrotfish-m9mk.squarespace.com/ (password: AFLA)

The CSS I used to make the slideshow appear below the header was this:

// SLIDESHOW GALLERY BEHIND HEADER NAV //
.page-section.gallery-section{padding-top:0px!important;}
 

Any ideas?

Link to comment
  • Solution
7 minutes ago, DangDang said:

.page-section.gallery-section{padding-top:0px!important;}

Add this to the home page header code injection rather than Custom CSS:

<style>
.page-section.gallery-section{padding-top:0px!important;}
</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!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment
Posted (edited)

Hm, it seems like I can't inert code specifically for the home page in the code injection section? Which means that if I inject your code for the header, it will affect all pages as well. Might this be because I'm still on the trial version?

 

 

Edited by DangDang
Link to comment
33 minutes ago, DangDang said:

Hm, it seems like I can't inert code specifically for the home page in the code injection section? Which means that if I inject your code for the header, it will affect all pages as well. Might this be because I'm still on the trial version?

Go to page settings, and advanced.

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!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment
22 minutes ago, DangDang said:

That worked! Thank you very much, looks great. 

Nice one!

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!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

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.