Image being cut off on homepage of refresh theme in mobile view - how to fix?

Solved

Image being cut off on homepage of refresh theme in mobile view - how to fix?

randyerspamer
Visitor
2 0 2

Hi all, 

 

My shopify store at my.unilabhealth.com is not scaling correctly in mobile view. On desktop it looks fine, but one of the images is being cut off on the homepage. Anyone have any ideas on how I can fix it? Thanks!

Accepted Solution (1)

BSS-TekLabs
Shopify Partner
2136 633 735

This is an accepted solution.

- Here is the solution for you @randyerspamer 
- Please follow these steps:

z5686811214059_e66de1953f1db631f9134af5cdb796ad.jpg

- Then find the theme.liqid file.
- Then add the following code at the before tag </head> and press 'Save' to save it.

<style>
@media screen and (max-width: 749px) {
    .image-with-text.collapse-corners:not(.image-with-text--overlap) .image-with-text__media-item:after, .image-with-text.collapse-corners:not(.image-with-text--overlap) .grid__item .image-with-text__media, .image-with-text.collapse-corners:not(.image-with-text--overlap) .image-with-text__media img, .image-with-text.collapse-corners:not(.image-with-text--overlap) .image-with-text__media .placeholder-svg {
        object-fit: contain !important;
    }
}
</style>

 

- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

View solution in original post

Replies 3 (3)

BSS-TekLabs
Shopify Partner
2136 633 735

This is an accepted solution.

- Here is the solution for you @randyerspamer 
- Please follow these steps:

z5686811214059_e66de1953f1db631f9134af5cdb796ad.jpg

- Then find the theme.liqid file.
- Then add the following code at the before tag </head> and press 'Save' to save it.

<style>
@media screen and (max-width: 749px) {
    .image-with-text.collapse-corners:not(.image-with-text--overlap) .image-with-text__media-item:after, .image-with-text.collapse-corners:not(.image-with-text--overlap) .grid__item .image-with-text__media, .image-with-text.collapse-corners:not(.image-with-text--overlap) .image-with-text__media img, .image-with-text.collapse-corners:not(.image-with-text--overlap) .image-with-text__media .placeholder-svg {
        object-fit: contain !important;
    }
}
</style>

 

- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
randyerspamer
Visitor
2 0 2

Thank you! That worked

BSS-TekLabs
Shopify Partner
2136 633 735

Glad to help you. Have a good day.

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now