Jump to content

Aviator Template: Change Background for single page via CSS

Go to solution Solved by tuanphan,

Recommended Posts

Posted

Site URL: https://brandtkrueger.com/eventtechchat

Hi folks! Did a fair amount of digging around and found multiple posts suggesting this type of code in the CSS to change the background for a single page:

#collection-62388f208efc5956032ddcc4 {
   background-position: center top !important;
   background-image: url("//static1.squarespace.com/static/53fba287e4b01f78d1474e60/t/6238a1fc02774670236d23cf/1647878652355/drew-gilliam-UEIkj1N2LlE-unsplash.jpg");
}

However, nothing happens, and the regular site background remains. Any chance this is due to Aviator having different Info and Site backgrounds and it's somehow named differently than background-image?

Also, going to potentially want to remove the color overlay for just this page if that's doable 🙂

Thanks!

 

Posted
9 hours ago, tuanphan said:

Add to Design > Custom CSS

body#collection-62388f208efc5956032ddcc4 div#bgOverlay {
    background-color: transparent !important;
}

 

Thanks that looks like the overlay question. Any thoughts on the main background image question?

  • Solution
Posted
On 3/23/2022 at 12:19 AM, SyddyS said:

Thanks that looks like the overlay question. Any thoughts on the main background image question?

Use this code

/* Eventtechchat page */
#collection-62388f208efc5956032ddcc4 {
& {
   background-position: center top !important;
   background-image: url(https://cdn.pixabay.com/photo/2022/02/23/18/11/drink-7031154__480.jpg);
}
#outerWrapper {
   background-image: unset !important;
}
div#bgOverlay {
    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!)

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.