Jump to content

Anyone know how to rescale page featured images for mobile

Recommended Posts

Posted

Hi,

 

I'm running off of the Henson template. I've noticed that the featured image that hovers for each page section gets cropped or cut off awkwardly when viewing in mobile.  Does anyone know a code or solve to have the featured page image scaled down when viewed on a mobile device? See screenshot example below

 

Thank you!

Greg

 

Screenshot 2023-12-05 at 11.34.23 AM.png

  • Replies 14
  • Views 1.7k
  • Created
  • Last Reply

Top Posters In This Topic

Posted

Try this code to Website Tools (under Not Linked) > Custom CSS

@media screen and (max-width:767px) {
[data-url-id="accessories"] img {
    width: 100% !important;
    height: auto !important;
    left: 0 !important;
    top: 0 !Important;
    opacity: 1 !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!)

Posted

You're correct! that is the size it should be. For some reason it is showing that image when you first enter the site and across other pages as well. But then all other images that should be shown in hover do not resize. See a few screenshots of the site attached as I let it cycle through.

 

 

image.thumb.png.70e2b23348233f64490d80c835cf3afd.pngimage.thumb.png.84dffd6474453d7cfcb3b28c6e846e88.pngimage.thumb.png.b588b7734e65b14d54d162208e2cb691.pngimage.thumb.png.140cbef3b3b63ad02869825dbb2aae31.png

  • 2 weeks later...
  • 2 weeks later...

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.