How to maintain original image size in Dawn theme's text section?

Popcorn
Explorer
104 0 13

 Hi, does anyone know what code I can use to keep my original image size in the "image with text" section for desktop view? The image seems to get cut off or resized but I would like to keep my original image ratio. Any help would be appreciated. Thank you 🙂

 

store url: https://lua-wolves-crystals.myshopify.com/

password: bahcri 

Replies 7 (7)

GemPages
Shopify Partner
5625 1262 1264

Hello @Popcorn

It's GemPages support team and glad to support you today.

 

You can paste below code to file base.css

@media screen and (min-width: 750px)
  shopify-section-template--16312299356399__16596614828350cabe .image-with-text__media--large {
    height: auto;
  }
}
shopify-section-template--16312299356399__16596614828350cabe .image-with-text .image-with-text__media img{
  height: auto;
}

I hope the above is useful to you.


Kind & Best regards, 
GemPages Support Team

GemPages - Build any high-converting store pages for any business


- If you find my reply helpful, please hit Like and Mark as Solution
- Get connected: App Store | Blog | Community | Help Center
Popcorn
Explorer
104 0 13

Hi! Thank you for your help! I tried the code but unfortunately, it didn't make any changes to the image size in desktop view. Here is a screenshot of how my image looks in mobile view as comparison. 🙂 Screen Shot 2023-03-03 at 12.34.39 AM.png

oscprofessional
Shopify Partner
16204 2422 3145

@Popcorn ,

Is this the image you are asking ?

oscprofessional_0-1677739908436.png

 

Get pass your Store Core Web Vital Free Speed Optimization Audit, Chat on WhatsApp | Skype : oscprofessionals-87 | Email: pallavi@oscprofessionals.com | Hire us | Guaranteed Site Speed Optimization | Website Free Audit | Shopify Theme Customization | Build Shopify Private App | Shopify SEO | Digital Marketing | Oscp Upsell & Cross sell App : Free | Oscp Sales & Volume Discount App : Free | Custom Pricing Wholesale App : Free | OSCP Shipping Discounts App : Free
Popcorn
Explorer
104 0 13

Yes, that is the image. I am trying to keep the original image size, like the image size in mobile view 🙂 

GemPages
Shopify Partner
5625 1262 1264

Hello @Popcorn

It's GemPages support team and glad to support you today.

 

Sorry for my custom code missing a little code. Please   paste below code to file base.css

 

@media screen and (min-width: 750px){
  #shopify-section-template--16312299356399__16596614828350cabe .image-with-text__media--large {
    height: auto;
  }
}
#shopify-section-template--16312299356399__16596614828350cabe .image-with-text .image-with-text__media img{
  height: auto;
}

 

I hope the above is useful to you.


Kind & Best regards, 
GemPages Support Team

GemPages - Build any high-converting store pages for any business


- If you find my reply helpful, please hit Like and Mark as Solution
- Get connected: App Store | Blog | Community | Help Center
Popcorn
Explorer
104 0 13

Thank you very much! It worked! For the text section, is there any code to move both the heading and text a little bit more upward? Thank you in advance 🙂 

GemPages
Shopify Partner
5625 1262 1264

Hello @Popcorn

It's GemPages support team and glad to support you today.

 

You can use this code

@media screen and (min-width: 990px){
  #ImageWithText--template--16312299356399__16596614828350cabe{
    padding-top: 5rem;
  }
}
@media screen and (min-width: 750px){
  #ImageWithText--template--16312299356399__16596614828350cabe{
    padding-top: 3rem;
  }
}

I hope the above is useful to you.


Kind & Best regards, 
GemPages Support Team

 

GemPages - Build any high-converting store pages for any business


- If you find my reply helpful, please hit Like and Mark as Solution
- Get connected: App Store | Blog | Community | Help Center