Shopify themes, liquid, logos, and UX
Hi Everyone, I need to make the images on my home page portrait.
Hey @Lpr13 Here how you can solve your issue by yourself or I can add a simple CSS code to adjust the image orientation, making them portrait on your home page. This solution is quick, easy, and flexible, allowing for future adjustments. And also there is another solutions is by using adobe photoshop .Let me know if you want me do it for you
Please add the CSS code so I can fix it. Thanks
Here you go @Lpr13
.home-page img {
object-fit: cover;
width: 100%;
height: 100vh; /* or a specific height value */
}
Let me know if I can help you with anything else
Thanks. Where do i paste this?
Hi @Lpr13
Is this one the mobile only? I check your store this is visible on my end.
Would you mind to share the preview of the current theme your editing? Thanks!
I’m making a new store in the background. That is not the one I am referring to
Thanks for the info, check this one.
From you Admin page, go to Online Store > Themes
Select the theme you want to edit
Under the Asset folder, open the main.css(base.css, style.css or theme.css)
Then place the code below at the very bottom of the file.
@media only screen and (max-width: 749px){
slideshow-component .slideshow.banner {
height: 100vh;
}
}
And save.
Result:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024