TimMarner Posted June 20, 2023 Posted June 20, 2023 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/
tuanphan Posted June 22, 2023 Posted June 22, 2023 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; } TimMarner 1 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!)
TimMarner Posted June 22, 2023 Author Posted June 22, 2023 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/
tuanphan Posted June 23, 2023 Posted June 23, 2023 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!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment