Jump to content

Add second header area at top of site with repeating image

Recommended Posts

On 4/6/2022 at 2:20 AM, betyonfire said:

Site URL: https://wilsonmuseum.squarespace.com/

I'd like to add a section above the header with a background color and repeating image. I've found some tutorials about adding a second navigation bar but this seems a little (or so I think) simpler/more basic. Possible?

The site password is: backflips!

Screen Shot 2022-04-05 at 3.19.06 PM.png

Try adding to Home > Design > Custom Css

#header:after {
  content:'';
  display:block;
  width: 100%;
  height: 10px;
  position: relative;
  background-image: radial-gradient(#212121 20%, #FDE569 20%);
  background-position: 0 0;
  background-size: 10px 10px;
  order: 1;
}
#header .header-announcement-bar-wrapper {
  order: 2
}
#header {
  display: flex;
  flex-direction: column;
}

Let me know how it works on your site

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date format)
💫 Animated Buttons (Referral URL)
🥳 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

My testing

image.thumb.png.794b6763f8e1ef9083fbdfd0b9e4a602.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date format)
💫 Animated Buttons (Referral URL)
🥳 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 4/15/2022 at 3:52 AM, betyonfire said:

That didn't seem to work. It would appear for a quick second as the page loads, then it disappears. If you have any other ideas, I'd love to hear them.

Try this new code

header#header:after {
  content:'';
  display:block;
  width: 100%;
  height: 10px;
  position: relative;
  background-image: radial-gradient(#212121 20%, #FDE569 20%);
  background-position: 0 0;
  background-size: 10px 10px;
  order: 1;
}
#header .header-announcement-bar-wrapper {
  order: 2
}
#header {
  display: flex;
  flex-direction: column;
}

If it still doesn't work, edit your Site Footer > Add a Code Block under email > Paste this code

<style>
  header#header:after {
  content:'';
  display:block;
  width: 100%;
  height: 10px;
  position: relative;
  background-image: radial-gradient(#212121 20%, #FDE569 20%);
  background-position: 0 0;
  background-size: 10px 10px;
  order: 1;
}
#header .header-announcement-bar-wrapper {
  order: 2
}
#header {
  display: flex;
  flex-direction: column;
}
</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
  • 2 weeks later...

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.