Jump to content

Index page background image in 7.0? (NOT page/section banners)

Recommended Posts

Site URL: https://www.apertureconsultinggroup.com/home

I'm working with a client-installed template using Brine, and I want to insert a background image on all the main pages. But the template uses Index pages and I can't find a way to set a background image for the entire Index page, as opposed to the banners for each "page"/section. Here's an example with the background set for the top section.  You can see it's cut off - Instead I want the background to fade out gradually behind the first 2-3 sections.

I know I can accomplish this by combining sections/pages so there's one banner for all the content, but that's not ideal at all. I've attached a Figma screenshot of what I want it to look like. 

image.thumb.png.53b850dc71cd9db6d241bd53bcbef004.png

Link to comment

Add to Design > Custom CSS

body#collection-60d204608d9a33537c7a759a {
    background-image: url(https://images.squarespace-cdn.com/content/v1/60d204568d9a33537c7a72da/1645755511799-RJT2VBVKBS2XSFEPTI4D/contour+background.png?format=1500w) !important;
}
body#collection-60d204608d9a33537c7a759a section {
    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!)

Link to comment

Yes!! Thank you so much @tuanphan! So simple but now I know 😁 I added background-repeat: no-repeat and it's exactly what I needed. You're the best. 

 

Edited for anyone finding this later - I actually used the following, so the image would scale to the width of the window but not repeat either horizontally or vertically:

background-size: 100%;
background-repeat: no-repeat;

Edited by KaijuCorgi
additional info
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.