(Squarespace) Add a Slideshow above Header

You can follow these steps to add a Slideshow above Header on One Page and All Pages

All Pages
(1) First you add a Slideshow Section (Gallery Section) under Header on All Pages
(2) Use this code to Code Injection - Footer

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
jQuery(document).ready(function($){
  $('article>section:first-child').insertBefore('header#header');
})
</script>
<style>
header#header {
   position: sticky !important;
  transform: Unset !important;
}
div#siteWrapper>section {
    padding: 0px !important;
    z-index: 999999 !important;
}
</style>

Result

One Page
(1) First you add a Slideshow Section (Gallery Section) under Header
(2) Use this code to Individual Page Header Code Injection

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
jQuery(document).ready(function($){
  $('article>section:first-child').insertBefore('header#header');
})
</script>
<style>
header#header {
   position: sticky !important;
  transform: Unset !important;
}
div#siteWrapper>section {
    padding: 0px !important;
    z-index: 999999 !important;
}
</style>

2 Likes