Solved

How to fix image not fitting on mobile view?

Ess91
Shopify Partner
36 0 5

Hi,

 

On mobile view, the image banner on the top does not entirely fit. Need everything to fit on the mobile. Thank you.

shopify url: leniquelouis.myshopify.com/pages/clearpay

password: love

 

I'd appreciate the help.

 

Thank you

 

Screenshot 2023-06-01 123439.pngScreenshot 2023-06-01 123420.png

Accepted Solution (1)

Moeed
Shopify Partner
3858 974 1216

This is an accepted solution.

Hey @Ess91 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code in the bottom of the file above </body> tag.

 

<style>
@media (max-width: 767px) {
.image__overlay-section.section-template--14620851241063__a4022d85-3f7b-4535-b438-400d1eef8043 {
    --height: 200px !important;
    margin-bottom: -200px;
}
}
</style>

 

Capture.JPG


If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

Need a Shopify developer? Chat on WhatsApp


- For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️

View solution in original post

Replies 2 (2)

Moeed
Shopify Partner
3858 974 1216

This is an accepted solution.

Hey @Ess91 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code in the bottom of the file above </body> tag.

 

<style>
@media (max-width: 767px) {
.image__overlay-section.section-template--14620851241063__a4022d85-3f7b-4535-b438-400d1eef8043 {
    --height: 200px !important;
    margin-bottom: -200px;
}
}
</style>

 

Capture.JPG


If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

Need a Shopify developer? Chat on WhatsApp


- For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️

dmwwebartisan
Shopify Partner
12313 2550 3706

@Ess91 

Please add the following CSS code to your assets/stylesheet.css bottom of the file.

 

@media screen and (max-width: 740px){
.image__overlay-section .image__overlay-container {
    background-size: contain !important;
    height: 125px !important;
}
}

 

Thanks!

If helpful then please Like and Accept Solution | Email: dmw.webartisan@gmail.com |  Instagram: @dmw.webartisan
Check here PageFly App to customize your pages | #1 Product Filter & Search app on Shopify | The most powerful Shopify page builder app