Image banner is cut off despite it being not in preview.
1st pic: In view store mode, heads are cut, not how I want it.
2nd pic: How Shopify says it looks before clicking view. How I want it.
Image banner is cut off despite it being not in preview.
1st pic: In view store mode, heads are cut, not how I want it.
2nd pic: How Shopify says it looks before clicking view. How I want it.
(depending on the theme version, the behaviour may differ from the mentioned below)
When youâre setting the âBanner heightâ in section properties it sets the height of your banner but its width can change with the browser window resize.
Image proportions (aspect ratio) are not maintained and some cropping will occur as the result.
In your screenshots, the first one is obviously made in a wider window.
To maintain aspect ratio there is an âAdapt to first imageâ option, but it only properly works for single image.
For two images they are shown 2 times taller, this may still work in your case, so worth trying).
Otherwise, there is still a way to fix this if your section settings have âCustom CSSâ setting at the bottom.
Add this code there:
.banner__media-image-half {
object-position: center 25%;
}
The images will still be cropped, but it will keep the heads visible. You may try changing 25% to your liking.
By default itâs set to 50%, meaning that the same amount will be cropped at the top as at the bottom.
Suggested 25% means it will crop more from the bottom and less from the top.
If you set it to 0% it will only crop from the bottom.
I am having the same issue in the Studio theme with a main single image. Iâm not seeing anywhere to set âAdapt to first imageâ option. Can you tell me how you do that?
What section youâre using?
âImage bannerâ has âBanner heightâ setting, âSlideshowâ has âSlide heightâ in section settings.
Hey Tim, Iâm pulling my hair out here.
I have seen that itâs possible to have 2 different images for both Desktop and mobile banner, which I have. The issues I am having is with Desktop. No matter the size of the banner image on Desktop when using a laptop or narrower screen the sides are getting chopped off. I have changed the sizes multiple times and am having the same problem every time. Is there something that can be done so that the banner automatically fits/shrinks/zooms to window?
Thanks in advance.