Jump to content

Adding Images above homepage navigation

Go to solution Solved by tuanphan,

Recommended Posts

  • Replies 2
  • Views 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

  • Solution

First, add a Image section under navigation header

Next, use this code to Website Tools > Under Not Linked > 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.