Jump to content

Changing size of background image on mobile

Recommended Posts

  • Replies 3
  • Views 606
  • Created
  • Last Reply
Posted
On 8/5/2021 at 9:25 PM, Jess-7992 said:

Site URL: https://wisteria-emu-22zw.squarespace.com/

Hi there,

I'd like to know if someone can help me change the size of the background images on my site. Both on the home page, and on the content pages

https://wisteria-emu-22zw.squarespace.com

https://wisteria-emu-22zw.squarespace.com/about-us

PW: PowderCoating6085

Thanks so much in advance!

 

Hi. How about use new image on mobile only? If you want this, we can check & give the code

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!)

Posted
On 8/8/2021 at 11:52 AM, Jess-7992 said:

Hi @tuanphan

Yes that's actually what I meant, sorry I didn't explain that properly! I'd like to be able to direct to a different image for mobile.

Cheers,
J

 

This code for about page. Add to Design > Custom CSS

/* Mobile-about image */
@media screen and (max-width:767px) {
body#collection-60fd08a6735d6f7990b15687 article .section-background {
    background-image: url(https://cdn.pixabay.com/photo/2021/07/26/01/47/woman-6493189__340.jpg);
    background-repeat: no-repeat;
    background-size: cover;
}

body#collection-60fd08a6735d6f7990b15687 article .section-background img {
    visibility: hidden;
}
]

 

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!)

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.