Jump to content

Adding a sticky header (navigation) using Wexley the template?

Go to solution Solved by tuanphan,

Recommended Posts

  • Replies 17
  • Created
  • Last Reply

Top Posters In This Topic

8 hours ago, iancurcio said:

Site URL: https://candidcreature.com

Does anyone know if there has been an update in SquareSpace to allow for a sticky header using Wexley templates?

Thanks,

Ian

Add to Design > Custom CSS

header#header {
    position: fixed;
    top: 0;
    z-index: 999;
    left: 0;
    right: 0;
    padding-top: 60px;
    padding-left: 60px;
    padding-right: 60px;
}
div#pageWrapper {
    margin-top: 115px;
}

 

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
On 11/12/2021 at 2:48 AM, iancurcio said:

Thanks, tuanphan. While this does stick the header, it does not allow the gallery to feed under the header but rather through it. Is there another workaround? 

Thanks,

Ian

Use this new code

header#header {
    position: fixed;
    top: 0;
    z-index: 999;
    left: 0;
    right: 0;
    padding-top: 60px;
    padding-left: 60px;
    padding-right: 60px;
}
@media screen and (min-width:901px) {
div#pageWrapper {
    margin-top: 180px;
}
}

 

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
  • 2 weeks later...

Yes. I want the gallery of images to disappear behind the header as they are being scrolled through (sen in screenshot 2). I put the red line there in photoshop to illustrate my point. In screenshot 1 the gallery of images are going through the header. 

Thanks so much for your help!

Link to comment
  • Solution
On 11/29/2021 at 11:56 PM, iancurcio said:

Yes. I want the gallery of images to disappear behind the header as they are being scrolled through (sen in screenshot 2). I put the red line there in photoshop to illustrate my point. In screenshot 1 the gallery of images are going through the header. 

Thanks so much for your help!

Add to Design > Custom CSS

header#header {
    position: fixed;
    top: 0;
    z-index: 999;
    left: 0;
    right: 0;
    padding-top: 60px;
    padding-left: 60px;
    padding-right: 60px;
    background-color: white;
}
@media screen and (min-width:901px) {
div#pageWrapper {
    margin-top: 150px;
}
}

 

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
14 hours ago, iancurcio said:

Looks like this code creates a problem when viewing the site on a mobile device. The top image and the menu is lost. Any ideas?

IMG_ECC02FB867D5-1.jpeg

Try this new code The code will run on desktop only

@media screen and (min-width:901px) {
header#header {
    position: fixed;
    top: 0;
    z-index: 999;
    left: 0;
    right: 0;
    padding-top: 60px;
    padding-left: 60px;
    padding-right: 60px;
    background-color: white;
}
div#pageWrapper {
    margin-top: 150px;
}
}

 

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.