Jump to content

Site Wide Background Image on 7.1

Recommended Posts

Posted

Try adding to Design > Custom CSS

.section-background, .page-section {
    background: transparent !important;
}
body {
   background-image: url(https://cdn.pixabay.com/photo/2021/01/07/22/15/dandelion-5898546__340.jpg);
   background-size: cover;
   background-repeat: no-repeat;
   background-position: center center;
   background-color: transparent !important;
}

 

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

  • 1 year later...
Posted

SS updated some class name. With anyone see this post, use this new code

.section-background, .page-section, .section-border {
    background: transparent !important;
}
body {
   background-image: url(https://cdn.pixabay.com/photo/2021/01/07/22/15/dandelion-5898546__340.jpg);
   background-size: cover;
   background-repeat: no-repeat;
   background-position: center center;
   background-color: transparent !important;
}

If you want it apply for Main Content only, use this code

article {
.section-background, .page-section, .section-border {
    background: transparent !important;
}}
body {
   background-image: url(https://cdn.pixabay.com/photo/2021/01/07/22/15/dandelion-5898546__340.jpg);
   background-size: cover;
   background-repeat: no-repeat;
   background-position: center center;
   background-color: transparent !important;
}

 

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

  • 2 months later...
Posted

Hi,

I used this code and can't figure out why its not working: 

.section-background, .page-section {
    background: transparent !important;
}
body {
   background-image: url(https://static1.squarespace.com/static/63f98da46a4cf12fdbebd558/t/640ce488e2e6426ab87bd9b1/1678566539189/contactBac2.jpghttps://static1.squarespace.com/static/63f98da46a4cf12fdbebd558/t/640ce488e2e6426ab87bd9b1/1678566539189/contactBac2.jpg);
   background-size: contain;
   background-repeat: no-repeat;
   background-position: center center;
   background-color: transparent !important;
}

Can you help?

Thanks

Posted
12 hours ago, Cbreeze said:

Hi,

I used this code and can't figure out why its not working: 

.section-background, .page-section {
    background: transparent !important;
}
body {
   background-image: url(https://static1.squarespace.com/static/63f98da46a4cf12fdbebd558/t/640ce488e2e6426ab87bd9b1/1678566539189/contactBac2.jpghttps://static1.squarespace.com/static/63f98da46a4cf12fdbebd558/t/640ce488e2e6426ab87bd9b1/1678566539189/contactBac2.jpg);
   background-size: contain;
   background-repeat: no-repeat;
   background-position: center center;
   background-color: transparent !important;
}

Can you help?

Thanks

Change this line

.section-background, .page-section {
    background: transparent !important;
}

to this

.section-background, .page-section, .section-border, .section-divider {
    background: transparent !important;
}

 

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

Posted
On 3/13/2023 at 2:52 AM, Itamar said:

Hi,

can this be easily done the same with a simple background color instead of an image? (for all website sections)

URL: https://quillfish-star-szda.squarespace.com/
Password: planetapes

 

Thanks a lot!

Use this

.section-background, .page-section, .section-border, .section-divider {
    background: transparent !important;
}
body {
	background-color: #f1f !important;
}

 

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

  • 2 weeks later...
Posted

@tuanphan Any tips for where to upload the image you want to use for a background? I have a JPEG on my desktop and curious where to upload it so I have a URL, like yours: 

background-image: url(https://cdn.pixabay.com/photo/2021/01/07/22/15/dandelion-5898546__340.jpg);
   background-size: cover;

thank you! 

Posted
On 4/1/2023 at 2:30 AM, liz003 said:

@tuanphan Any tips for where to upload the image you want to use for a background? I have a JPEG on my desktop and curious where to upload it so I have a URL, like yours: 

background-image: url(https://cdn.pixabay.com/photo/2021/01/07/22/15/dandelion-5898546__340.jpg);
   background-size: cover;

thank you! 

You can follow this guide: https://support.squarespace.com/hc/en-us/articles/205813928-Uploading-and-managing-files

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

  • 6 months later...
Posted
On 11/2/2023 at 7:05 AM, jessicajacques said:

Hi! This code worked perfectly for the background image I have implemented across my site. I would like to add a green overlay with a light opacity over the image as well. How can I achieve this?

You can consider design an image with overlay/light opacity, it will be easier

In case you want to use code, can you share site url? We can check & give code easier

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

  • 1 year later...
Posted

Hi there, I wanted to know if it's possible to use a background and let the content scroll but the background stay the same ? As soon as I add the page block my design goes away and it doesn't show the pink or blue design. I'd just like it to be that the content scrolls but the background doesn't

Screenshot 2024-11-24 000538.jpg

Screenshot 2024-11-24 000834.jpg

Posted
On 11/24/2024 at 12:10 PM, khernandez__ said:

Hi there, I wanted to know if it's possible to use a background and let the content scroll but the background stay the same ? As soon as I add the page block my design goes away and it doesn't show the pink or blue design. I'd just like it to be that the content scrolls but the background doesn't

Screenshot 2024-11-24 000538.jpg

Screenshot 2024-11-24 000834.jpg

Do you have link to this page?

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.