Re: Home page, make images portrait

Home page, make images portrait

Lpr13
Excursionist
11 0 4

IMG_5078.jpeg

Hi Everyone, I need to make the images on my home page portrait. 

Replies 8 (8)

shayanhussain
New Member
4 0 0

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 

shani
Lpr13
Excursionist
11 0 4

Please add the CSS code so I can fix it. Thanks 

shayanhussain
New Member
4 0 0

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 

shani
Lpr13
Excursionist
11 0 4

Thanks. Where do i paste this? 

Made4uo-Ribe
Shopify Partner
8230 1975 2419

Hi @Lpr13 

Is this one the mobile only? I check your store this is visible on my end. 

Made4uoRibe_0-1724102394704.png

Would you mind to share the preview of the current theme your editing? Thanks!

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
Lpr13
Excursionist
11 0 4

I’m making a new store in the background. That is not the one I am referring to 

Made4uo-Ribe
Shopify Partner
8230 1975 2419

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:

Made4uoRibe_0-1724106144432.png

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.