Jump to content

background image on one page

Recommended Posts

hello, I followed the following page:

 
 
to change a background image on one page but it does not work. I got the url from squarespace Custom CSS box.
 
I Created a code block on that particular page, with the following:
 

#page{background-image:url(https://images.squarespace-cdn.com/content/v1/5710d026859fd01f84e802a6/1522428965924-CJ0ZK2ASUBPMI7VQJROW/Background+-TM.jpg);
background-size:cover}

#page.page-section{
background:transparent!important
}

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

 

but nothing happened. What am I doing wrong?

 

Also, how do I find the id of  a page on squarespace?

Edited by jzs
Link to comment
  • Replies 6
  • Views 382
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Change this line

#page.page-section{
background:transparent!important
}

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

to this

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

If it still doesn't work, please share link to page where you want to change color, we can check 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!)

Link to comment

Hello,

it still does not work. Here is the page I want to change the background of using my own image:

www.nohaz.co/en/products

The background image should appear behind all the other sections/images i.e. replacing the current black plain one.

Appreciated. Cheers.

Link to comment

Don't remove any code in your current code

Add this to HOME > DESIGN > CUSTOM CSS

#collection-5abe62180e2e72c990f19072 {
    background-image: url(https://cdn.pixabay.com/photo/2023/04/06/01/44/man-7902570_1280.jpg) !important;
}

image.thumb.png.4cebf24dbe89a33d9d806536e71bdf45.png

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
  • 3 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.