Liquid, JavaScript, themes, sales channels
Hi!
Can someone please help me with mobile optimization? I want my banner images to look the same on mobile as on desktop. It's fine with most photographs, but I created a custom banner that contains both images and text. The text gets cut off on the mobile view. My URL is https://www.rusticbarnboutique.com and I'm using the Impulse theme. Specifically, I'm referring to the first banner in the slideshow (the tiny tikes image).
Can anyone help with this issue? Thank you.🙂🙂
-Kelly
Please place this code at the end of theme.scss
.hero__image {
-o-object-fit: contain;
object-fit: contain;
}
Hello,
If I use the code you provided, then my desktop slideshow and mobile images do not fill the area. Is there a way to fix this?
What is happening here is that you are using landscape and portrait images which are not fitting in the provided height. Please use landscape images which fit in the provided area.
User | RANK |
---|---|
25 | |
22 | |
9 | |
6 | |
6 |
Explore the 30-30-30 rule, a dynamic social media strategy for new businesses. Learn how t...
By Trevor Sep 20, 2023Discover how to leverage the often overlooked footer of your ecommerce site to gain custom...
By Skye Sep 15, 2023In this blog, we’ll be shining a light on Shopify Partners, Experts, and Affiliates. Who a...
By Imogen Sep 13, 2023