Jump to content

How Can I Add a Page Section Above the Header Navigation

Go to solution Solved by tuanphan,

Recommended Posts

Hi,

 

I'm hoping someone can help me with adding a page section or a banner that can contain images above the navigation on a website I'm building.

I'm trying to add a black section which contains the logo on the left and another image on the right.

I've added an image and hopefully you can understand what I mean from the image.

IMG-20231019-WA0004.thumb.jpg.3b2d06d2db21ce5ceb28e24633075466.jpgThank you

Link to comment

Hi,

This is possible, I solved 3 cases last week.

You want to do this on homepage only or all pages? We can give exact approach easier.

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
  • Solution
On 11/7/2023 at 6:27 PM, ShortAngryViking said:

I am keen to put it on every page. 

 

You can add a Not Linked Page > Design a section (Keep the page url slug: /above-header

Next, install Section Loader Plugin (affiliate link) or this link (non-affiliate link)

Next, add this code to bottom of Code Injection > Footer

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
$(document).ready(function(){
  setTimeout( function() {
        	$('div.wm-load-container').insertBefore('header#header');
    }, 2000);
});
</script>

Next, add this code to Website > Website Tools (under Not Linked) > Custom CSS

/* Add sticky header */
header#header {
    position: sticky !important;
  	position: -webkit-sticky !important;
    top: 0;
}
/* section above header */
.wm-load-container>section:first-child {
    display: none;
}
.wm-load-container .content-wrapper {
    padding: 0 !important;
    max-width: 100% !important;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.