Jump to content

Add Background Image To Events Page

Recommended Posts

Hi can anyone help me with this

I am trying to add a background image to the events block on my events page, but I don't think this option exists in Squarespace

Here is the page I am trying to this on: https://leebradbury.squarespace.com/events

Password: bradbury

I want the background to go on just the events section block, not the whole page

Thank you for any help

Tim Marner®
Award-Winning Branding Agency In Bolton

https://timmarner.co.uk/

Link to comment

Add to Design > Custom CSS

/* events page */
[data-section-id="6491adfe8b5357646d504b97"] .section-background {
    background-image: url(https://cdn.pixabay.com/photo/2023/06/13/10/09/man-8060589_1280.jpg) !important;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

 

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
1 hour ago, tuanphan said:

Add to Design > Custom CSS

/* events page */
[data-section-id="6491adfe8b5357646d504b97"] .section-background {
    background-image: url(https://cdn.pixabay.com/photo/2023/06/13/10/09/man-8060589_1280.jpg) !important;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

 

This has worked right on the events page! Thank you.

But it has also added the background to the inner events page. How do I remove it from those pages?

Tim Marner®
Award-Winning Branding Agency In Bolton

https://timmarner.co.uk/

Link to comment
23 hours ago, TimMarner said:

This has worked right on the events page! Thank you.

But it has also added the background to the inner events page. How do I remove it from those pages?

Use this new code

/* events page */
body.view-list [data-section-id="6491adfe8b5357646d504b97"] .section-background {
    background-image: url(https://cdn.pixabay.com/photo/2023/06/13/10/09/man-8060589_1280.jpg) !important;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

 

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

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.