Jump to content

How to change Cover Page Background Image On Mobile

Recommended Posts

Site URL: https://sprout-cinnamon-nygl.squarespace.com/coming-soon?noredirect

Is there a way yo change the background image on a cover page on mobile. 

I am trying to use this CSS to target the image id for the background but it doesn't seem to work.

 

@media only screen and (max-width: 600px) {
img#yui_3_17_2_1_1638408171512_197{
	content:url('https://static1.squarespace.com/static/6019e8a70f3f30673741f042/t/61a81fb24ebbca75aa73707f/1638408115876/IMG_5123.JPG') !important;
}
}

Any help or guidance is appreciated.

Website: https://sprout-cinnamon-nygl.squarespace.com/coming-soon?noredirect

Password: Transform

Link to comment
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Code in Design > Custom CSS won't run on Cover Page

Add this to Cover Page Header

<style>
  @media screen and (max-width:767px) {
  div.sqs-slice-gallery-item.content-fill img {
    visibility: hidden;
}
div.sqs-slice-gallery-item.content-fill {
    background-image: url(https://cdn.pixabay.com/photo/2021/11/11/20/49/sauerland-6787215__340.jpg);
    background-repeat: no-repeat;
    background-size: cover;
}
  }
</style>

 

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.