Jump to content

How can I move the header to be on top of navigation?

Recommended Posts

Hi all I am looking into ways and code to move my header "Hi I am Kacy" to go above my navigation such as "home" "work" etc

Attachments, the first image is my current site and the second image is the reference site that I am going for.

Many thanks!

Screen Shot 1740-10-16 at 09.10.28.png

Screen Shot 1740-10-16 at 14.10.12.png

Link to comment
  • Replies 3
  • Views 158
  • Created
  • Last Reply

Top Posters In This Topic

17 hours ago, Kacy-Jung said:

Hi all I am looking into ways and code to move my header "Hi I am Kacy" to go above my navigation such as "home" "work" etc

Attachments, the first image is my current site and the second image is the reference site that I am going for.

Many thanks!

Screen Shot 1740-10-16 at 09.10.28.png

Screen Shot 1740-10-16 at 14.10.12.png

Share your URL so we can easily check it

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget 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
On 6/27/2024 at 3:16 AM, Kacy-Jung said:

It's kacy-jung.com! 

Thank you!

Try this code to Website Tools > Code Injection > Footer

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

 

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

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.