Jump to content

Background image not showing

Go to solution Solved by paul2009,

Recommended Posts

Posted

Hi. 

I have used custom CSS to add a background image of repeating contour lines. Up until recently this was showing up but something I have done has made it disappear. I can't work out what though. Could anyone help please?

The custom CSS is below with the last section being the part for the background contours.

Thank you, Jacob.

 

Quote

.header {
background-image:url(https://static1.squarespace.com/static/63288878f14e8d4fb8fe3e93/t/63453203fd1e4f432fc51410/1665479172415/LLys+Meddyg+-+Mountain+Bike+Shoot+-+Owen+Howells+Photography-089.jpghttps://static1.squarespace.com/static/63288878f14e8d4fb8fe3e93/t/63453203fd1e4f432fc51410/1665479172415/LLys+Meddyg+-+Mountain+Bike+Shoot+-+Owen+Howells+Photography-089.jpghttps://static1.squarespace.com/static/63288878f14e8d4fb8fe3e93/t/63453203fd1e4f432fc51410/1665479172415/LLys+Meddyg+-+Mountain+Bike+Shoot+-+Owen+Howells+Photography-089.jpghttps://static1.squarespace.com/static/63288878f14e8d4fb8fe3e93/t/63453203fd1e4f432fc51410/1665479172415/LLys+Meddyg+-+Mountain+Bike+Shoot+-+Owen+Howells+Photography-089.jpg);
background-repeat:no-repeat;
background-size:cover;
background-position: center;
}
#header {
height: 70%;
}
// Hamburger Menu Colour //
.burger-inner > div {
background-color: #000000 !important;
}
.header .header-burger{display:flex}
.header-nav, .header-actions {display:none}

.header--menu-open .header-menu {
opacity: 1; visibility: visible;
width: 100%; 
margin-left: ;
}
footer#footer-sections .content-wrapper {
    background: #eaeaea !important;
}
.header--menu-open .header-menu {
    padding-top: 100px !important;
}
.section-background, .page-section {
    background: transparent !important;
}
body {
   background-image: url(https://static1.squarespace.com/static/63288878f14e8d4fb8fe3e93/t/6357de95a1061a1d010cc4d0/1666702998585/Contour+background+3.jpg);
   background-size: 60%;
   background-repeat: tile;
   background-position: center center;
   background-color: transparent !important;
}

 

  • Solution
Posted
On 1/18/2023 at 10:27 AM, hiddenroutes said:

I have used custom CSS to add a background image of repeating contour lines. Up until recently this was showing up but something I have done has made it disappear. I can't work out what though. Could anyone help please?

Hi @hiddenroutes

Squarespace made a change to page sections in early November 2022, adding a new div with a section-border class. Any CSS intended to style section backgrounds that was added before this change would have stopped working - including yours.

You should be able to resolve this (at least temporarily) by making the new div transparent by adding the following CSS below your existing styles:

.section-border {
  background-color: transparent!important;
}

image.thumb.png.2b3de16783e336910e684e27edc1884c.png

I said "temporarily" because this wasn't the last planned change to page sections, so this may stop working again in the near future. It will be worth keeping an eye on it.

Did this help? Please give feedback by clicking an icon below  ⬇️

Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.

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.