How to make my slideshow banner fill out the whole screen on mobile?

Solved

How to make my slideshow banner fill out the whole screen on mobile?

HallyuApparel
Excursionist
20 0 6

Hello,

So I made a separate slideshow banner for desktop and mobile because the slideshow banner for my desktop has text in the actual image because it is easier to customize.
I made 2 different slideshow banners and I inputted custom css from https://websensepro.com/blog/show-different-banner-images-on-mobile-desktop-in-shopify/ so that I can choose what to put for desktop and mobile. So the slideshow banner is different for the mobile and desktop. 
So because I did this, the text is not attached to the image for the mobile version, only the desktop. Is there a code that can make the image go fullscreen so it takes up the entire screen on mobile just like how it is on desktop?
Thank you!
The URL is hallyuapparel.com .

Accepted Solution (1)
Dan-From-Ryviu
Shopify Partner
10792 2133 2250

This is an accepted solution.

Please add this code to Custom CSS of that mobile section 

.banner {
height: 100vh;
}

Screenshot_1.jpg

- 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 7 (7)

qasim-devloper
Shopify Partner
143 9 19
@media only screen and (max-width: 767px){
.slideshow__media.banner__media.media.aos-init.aos-animate{
object-fit: cover;
    object-position: center;
}
}

To solve this issue. Please first remove the text on Mobile Hero Section. After that upload the image that has text on it. If it is overflow then resize the image something (800px by height) height automatically change when you decrease width. After that it also overflow then use these properties in base.css file.

 

- Need a Shopify Specialist? Chat on WhatsApp +923289643774

- Boost Your Sales with Affiliate Marketing - UpPromote: Affiliate & Referral


- If my solution was helpful, mark it as a solution and hit the like button!

Made4uo-Ribe
Shopify Partner
9701 2306 2881

Hi @HallyuApparel 

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 (max-width: 749px){
.banner__media.media.scroll-trigger.animate--fade-in img {
    object-fit: fill;
}
}

 

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

     

  • I noticed you changed it to the default heading for the image banner, but on desktop, the text is still attached to the image. Are you aware that there are many screen sizes? Additionally, when you view it on a tablet, the result on your store appears like this.
  • Made4uoRibe_1-1734641818918.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 ⚙️.
HallyuApparel
Excursionist
20 0 6

Yes, the desktop slideshow image has the text as a part of image because it was easier to customize the text. However on mobile, I didn't do that because I wanted the whole screen on a phone to be the image similar to how on desktop the whole screen is filled up with the image. I believe using an image with the text attached would somehow ruin that. 

Also for your solution, I actually wanted the whole screen to be full on mobile, not for the whole image to show. 


So something like the https://fearofgod.com/ on mobile where the whole entire screen in the image with the button in the middle. 

Thank you!

Dan-From-Ryviu
Shopify Partner
10792 2133 2250

Hi @HallyuApparel 

Please add this code to Custom CSS of the mobile's slideshow section 

.media img {
object-fit: fill;
}

Screenshot 2024-12-20 at 08.47.50.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.

HallyuApparel
Excursionist
20 0 6

Hi Dan,

I wanted to image to fill out my whole mobile screen instead of just showing the whole image.

I want it to look like the https://fearofgod.com/ website on mobile.

 

Thank you!

Dan-From-Ryviu
Shopify Partner
10792 2133 2250

This is an accepted solution.

Please add this code to Custom CSS of that mobile section 

.banner {
height: 100vh;
}

Screenshot_1.jpg

- 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.

HallyuApparel
Excursionist
20 0 6

Thank you !!