Jump to content

How to add a single banner image above my navigation menu?

Go to solution Solved by Ziggy,

Recommended Posts

Posted

Hi everyone,

Does anyone know how could I add a single banner image above my navigation menu?
From now, my banner image is under my navigation menu (see pic attached).

Thanks a lot in advance. 😀

Nadège

Capture d’écran 2023-10-30 à 14.06.08.png

Posted

Try this solution:

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Posted
2 hours ago, PoupeeFlash said:

Thanks a lot it works, I just got a huge space write know

 

Set the section height to L (large)

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Posted

Hello !

As you can see i don't have this option from my side :

And also, I need this banner to appear in each page of my website, how could i do that?

Thanks a lot!

Nadège

Capture d’écran 2023-10-31 à 09.55.43.png

  • Solution
Posted
9 minutes ago, PoupeeFlash said:

As you can see i don't have this option from my side :

Is this "banner" a grid gallery?

I would suggest a normal section and set the banner as the background image, can you try that?

Adding it to every page automatically may need a different approach, but you could (once you have it looking right) save the section to simply reuse on every page by adding the saved section. 
Just my opinion, but I'm not sure as a visitor to your website I would want to see the same thing at the top of every page I visit, it would be especially weird if I land on the website, click a new tab in the navigation and it reloads what looks like exactly the same page (until you scroll down).

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Posted
1 minute ago, PoupeeFlash said:

Now it works! 😀

Nice one! Thanks for marking my post as the solution!

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

  • 2 months later...
Posted

Hey there, 

Back to you cause I want to delete this banner only on mobile device.

I used this code

@media screen and (max-width: 640px) {

.page-section:first-child {
visibility: hidden;
}

}

But there is an big empty white space instead of the banner (see screenshot). How could I delete it?

Thanks a lot!

N.

Capture d’écran 2024-01-11 à 15.56.24.png

Posted

visibility:hidden; just means that the section has no visibility, so shows as blank, if you don't want something to load, then you need to use display:none; You also may want to use 767px instead of 640px as that's the correct mobile breakpoint for Squarespace 7.1

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Posted

Alright ! 

I taped this : 

@media screen and (max-width: 767px) {
.page-section:first-child {
display:none;
}
}

But now, my menu disappeared (see screenshot). Thanks a lot for your help ! N.

 

Capture d’écran 2024-01-11 à 16.06.36.png

Posted

Can you share your website URL?

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Posted

Try this CSS:

@media screen and (max-width: 767px) {
  .page-section:first-child {
    display:none;
  }
  .page-section:second-child {
    margin-top: 90px;
  }
  .header .header-announcement-bar-wrapper .header-border {
    z-index: 99 !important;
  }
}

 

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Posted

Try this instead:

@media screen and (max-width: 767px) {
  .page-section:first-child {
    display:none;
  }
  .page-section:nth-child(2) {
    margin-top: 90px;
  }
  .header .header-announcement-bar-wrapper .header-border {
    z-index: 99 !important;
  }
}

 

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Posted
2 minutes ago, PoupeeFlash said:

Unfortunately it's stil the same thing :The mobile menu is still hidden. 😞

Strange, it works on my test site. Try adding an !important to the margin top:

@media screen and (max-width: 767px) {
  .page-section:first-child {
    display:none;
  }
  .page-section:nth-child(2) {
    margin-top: 90px !important;
  }
}

 

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Posted
8 minutes ago, PoupeeFlash said:

Ah i don't why it's still not working from my side…

Sorry, I can't understand why that's not working. Any errors in your CSS?

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Posted

Yeah that's weird…

This all that i got in my code injection :

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://d1j8mu9lowy9zf.cloudfront.net/twcsl/0.2.2/twcsl.js"></script>
<script>
document.addEventListener("DOMContentLoaded",function() {
    const header = document.getElementById('header');
    const firstSection = document.querySelector('.page-section:first-child');
    firstSection.after(header);
});

</script>
<style>

@media screen and (min-width: 768px) {
#header {
  position: sticky;
  top: 0;
  display: none;
  background: white !important;
  margin-bottom: 2em;
}
main .page-section:first-child + #header {
  display: block;
}
main .page-section:first-child {
  min-height: calc(0vh - 93px)!important;
}
}

@media screen and (max-width: 767px) {
  .page-section:first-child {
    display:none;
  }
  .page-section:nth-child(2) {
    margin-top: 90px !important;
  }
}
  
</style>

 

This is all that i got in my CSS :

 

@font-face {
font-family: Bookman Old Style;
src: url(https://static1.squarespace.com/static/6526914f318a803a3c6b52f8/t/652fa8d68c27354c6741db24/1697622231225/Bookman+Old+Style+Regular.ttf);
}

@font-face {
font-family: modestoopen-inlinefill;
src: url(https://static1.squarespace.com/static/6526914f318a803a3c6b52f8/t/652fa54b40e37169cae7f169/1697621323634/modestoopen-inlinefill.ttf);
}

p {
font-family: 'Bookman Old Style';
}

// Site Navigation //
.header-nav-item a {
  font-family: 'modestoopen-inlinefill' !important;
  font-weight: 600;
  text-transform: uppercase;
}

.thumbnail-image { 
   width: 200px; 
   height: 200px; 
}

.header-title { 
  visibility: hidden; 
}

Posted

Looks like it's not working correctly because it's in the header code injection. Also looks like you have some conflicting code for the #header.

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Posted

Hey, 

I finally find a way to fix it. 🙂

But now, only on mobile device, all those nav links (see screenshots) don't work. I don't understand why cause it's only happening on mobile device. Could you help me with that. 

Thanks.

N.

 

Capture d’écran 2024-01-12 à 12.13.17.png

Posted
On 1/12/2024 at 6:15 PM, PoupeeFlash said:

Hey, 

I finally find a way to fix it. 🙂

But now, only on mobile device, all those nav links (see screenshots) don't work. I don't understand why cause it's only happening on mobile device. Could you help me with that. 

Thanks.

N.

 

Capture d’écran 2024-01-12 à 12.13.17.png

It shows fine to me on mobile

image.png.d9adbcf23906fe71ce0d2ed9e51c798b.png

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!)

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.