Re: Image Banner Resize on Desktop View

Solved

How can I resize my homepage image banner for desktop view?

HarlowJ
Tourist
5 0 0

Hello, I hope everyone is doing well! Currently, I love how the main image banner on my homepage looks on the mobile screen. Sadly on the desktop it is too big and I would like to make it smaller ( so you can see the whole character ) and add some padding around it if possible. Im not sure if the image size is the problem but please let me know!

 

The URL is: https://a54738-4.myshopify.com/

The password is: image

Accepted Solution (1)

PageFly-Noah
Shopify Partner
1317 233 273

This is an accepted solution.

Hi @HarlowJ 

 

This is Noah from PageFly - Shopify Page Builder App

 

Please add this code to your theme.liquid above the </head> to get this solved

Step 1: Online Stores > Themes > More Actions > Edit code

Step 2: click on theme.liquid and paste the code above the </head>

<style> 
@media screen and (min-width: 767px){
.banner__media.media img {
object-fit: contain;
}
}

</style>

Here's how its look on my end : 

PageFlyNoah_0-1691626976079.png

 

Hope this can help you solve the issue 

 

Best regards,

Noah | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!


PageFly - #1 Page Builder for Shopify merchants.


All features are available from Free plan. Live Chat Support is available 24/7.

View solution in original post

Replies 4 (4)

PageFly-Noah
Shopify Partner
1317 233 273

This is an accepted solution.

Hi @HarlowJ 

 

This is Noah from PageFly - Shopify Page Builder App

 

Please add this code to your theme.liquid above the </head> to get this solved

Step 1: Online Stores > Themes > More Actions > Edit code

Step 2: click on theme.liquid and paste the code above the </head>

<style> 
@media screen and (min-width: 767px){
.banner__media.media img {
object-fit: contain;
}
}

</style>

Here's how its look on my end : 

PageFlyNoah_0-1691626976079.png

 

Hope this can help you solve the issue 

 

Best regards,

Noah | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!


PageFly - #1 Page Builder for Shopify merchants.


All features are available from Free plan. Live Chat Support is available 24/7.

HarlowJ
Tourist
5 0 0

Hey Noah,

 

I hope you are doing well.

This worked perfectly! Thank you so much and have a great rest of your day.

 

Best regards,

Harlow

MotorMemories
Excursionist
32 0 5

Hey Noah, 

could you help me too :D? URL: motormemories.de Password: 123 
On the product-page "Erschaffe dein Kunstwerk!", the payment-method banner should be below the "add to cart" and not over the whole screen

Thanks a lot!

Greetings from germany

 

- Fabian

Dan-From-Ryviu
Shopify Partner
9695 1937 1973

Hi @HarlowJ 

You can solve it by adding this CSS code at the bottom of your base.css file

@media screen and (min-width: 990px) {
.banner__media.media > img { object-fit: contain !important; }
}

 

 

- Helpful? Like and Accept solution! Support me! Buy me coffee
- 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.
- Ryviu: Aliexpress Reviews - AliExpress Reviews Importer, one-click import aliexpress reviews, export reviews to CSV file.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.