Jump to content

Split sections suddenly not working

Go to solution Solved by LouiseDrever,

Recommended Posts

Hi there,

 

I'd previously used the following code to achieve a split screen layout, and it was working brilliantly up until recently. 

 

// Split section 1 //

@media @desktop {

  [data-current-styles*='"customContentWidth": 47'] {
    padding-top:0px !important;
  
  .section-background {
    width:50% !important;  
  }}
}

[data-current-styles*='"customContentWidth": 47']::before {
    content:"";
    background-image:url("https://static1.squarespace.com/static/5e67b77216532e7300a0c99d/t/63481b909be9e00a517b2e48/1665670046547/Engaged+nursery+worker.png");
    background-size:cover;
    position:absolute;
    width:50%;
    height:100%;
    right:0px;
  }

 

(There is a section directly below this one that isn't working either).

 

It's on this page: https://www.birminghamearlyyearsnetworks.org/nytb

Any help really appreciated!

 

Edited by LouiseDrever
Adding site url
Link to comment

You'll have to replace:

.section-background

with

.page-section .section-border

Squarespace changed their HTML setup for backgrounds recently. I would suggest checking where you got the code originally, they might have updated it and tested it.

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

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
🔌
 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 Did I help? Buy me a coffee?

Link to comment
  • 4 months later...

Hi @LouiseDrever Rache here of Standout Squarespace. You may always reach out to me if you need help with any of our resources even if you don't have an active membership.

Please send a direct message to me via our community (community.squarestylist.com). You may also send an email or message on instagram 🙂

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.