Jump to content

Custom Divider Under Header

Go to solution Solved by JayVanDyke,

Recommended Posts

This is the code I'm using, and I am not a coder- I have been messing with the numbers to adjust them to what I need for other places on my website and it's worked great. However, when I try to add this image as a custom divider at the bottom of my header it's repeating like in the image I attached? Anyone see what I'm doing wrong?

Thank you so much in advance,

Kelly

 

[data-section-id="header"] {
  overflow: visible;

  &:before {
    content: '';
    width: 100%;
    height: 100%;
    background-image: url(https://static1.squarespace.com/static/6458ed9acc4a6d5fea218463/t/64590a18f51a310b8326a8c8/1683556888991/Ash%27s+rope+updated.png);
    position: absolute;
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: bottom;
    top: 0;
    margin-top: 60px;
    transform: translateY(-100%);
    pointer-events: none!important;
    z-index: 1;
    @media screen and (max-width: 385px) {
      background-size: 200% 50%;
    }
  }
}

Screenshot 2023-05-18 at 3.07.46 PM.png

Link to comment

Can you share your website URL and site wide password?

The issue may be that [data-section-id="header"] is not a valid selector, for the header you want to use .header, not with the data-section-id. 

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!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️ Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

Thanks for sharing. Did you fix it, I can't see the problem?

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!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️ Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment
  • 3 weeks later...
  • Solution

It looks like you have 2 things happening. There's an error in your split header code you may want to reach out to them about. Also it's saying that the rope graphic is not found. you may want to reupload it and get a fresh link.

Screenshot 2023-06-08 at 11.37.18 AM.png

Screenshot 2023-06-08 at 11.37.10 AM.png

Screenshot 2023-06-08 at 11.36.51 AM.png

  Did I help you? Buy me a coffee!

👨‍💻 Bergen Design Co.

💻  I'm for hire on Upwork!

🕸️ Squarespace Experts  

🖥️ 99Designs

 🛠️ Web Designer's Toolkit

**some of these contain affiliate links

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.