We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

How do I change my banner to fit totally for mobile view, without changing PC view

Solved

How do I change my banner to fit totally for mobile view, without changing PC view

PLUS_clothing
Tourist
13 0 4

I

Scherm­afbeelding 2024-10-30 om 16.01.51.png

 want to change the banner for mobile view so you can see it totally on mobile. I found a solution but it shorted the width of my PC banner view.

Accepted Solution (1)

Made4uo-Ribe
Shopify Partner
10211 2427 3079

This is an accepted solution.

Hi @PLUS_clothing 

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 img {
    object-fit: inherit;
}
}

 

  • And Save.
  • Result:
    Made4uoRibe_0-1730303845396.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.

View solution in original post

Reply 1 (1)

Made4uo-Ribe
Shopify Partner
10211 2427 3079

This is an accepted solution.

Hi @PLUS_clothing 

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 img {
    object-fit: inherit;
}
}

 

  • And Save.
  • Result:
    Made4uoRibe_0-1730303845396.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.