Can't fit hero image properly when in Fullscreen (Refresh)

Solved

Can't fit hero image properly when in Fullscreen (Refresh)

StefanZ
Tourist
10 0 1

We're getting ready to launch a custom landing page for a giveaway: https://www.pelene.net/pages/pelene-na-36-novogodisnjem-decijem-sajmu

However, there's an issue with the Hero image only when in fullscreen mode:

 

chrome_2xeryNT89n.png

 

The theme in question is Refresh. 

On mobile & desktop it looks great:

chrome_Ops2aCxMyi.png

 

Any help would be appreciated!

Thanks.

Accepted Solution (1)

Dan-From-Ryviu
Shopify Partner
10791 2133 2250

This is an accepted solution.

Hi @StefanZ 

Please add this code to Custom CSS of that section in Online Store > Themes > Customize > Pages > open that page template 

@media (min-width: 990px) {
img { object-fit: fill; }
.slideshow__slide { min-height: 725px; }
}

Screenshot 2024-12-27 at 10.00.24.png

- Solved it? Hit Like and Accept solution! ❤️Buy Me Coffee❤️
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

View solution in original post

Replies 2 (2)

Made4uo-Ribe
Shopify Partner
9687 2303 2877

Hi @StefanZ 

Try this one. 

  1. From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  2. Find the theme that you want to edit and click on "Actions" and then "Edit code".
  3. In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

@media only screen and (min-width: 989px){
.slideshow__media.banner__media.media img {
    object-fit: inherit;
}
}

 

  • And Save.
  • Result:
  • Made4uoRibe_0-1735249636163.png

     

 

 Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better! 

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.

Dan-From-Ryviu
Shopify Partner
10791 2133 2250

This is an accepted solution.

Hi @StefanZ 

Please add this code to Custom CSS of that section in Online Store > Themes > Customize > Pages > open that page template 

@media (min-width: 990px) {
img { object-fit: fill; }
.slideshow__slide { min-height: 725px; }
}

Screenshot 2024-12-27 at 10.00.24.png

- Solved it? Hit Like and Accept solution! ❤️Buy Me Coffee❤️
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.