i want image to be adapt to its original size

Solved

i want image to be adapt to its original size

Emiway
Pathfinder
208 0 42

i want all this image to be adapt to its original ratio.. right now maximum section height is 750px

URL : https://zappdrink.myshopify.com/collections/frontpage/products/zapp-lime-drink

Pass : Zapp

Screenshot 2024-09-23 112349.png

Accepted Solution (1)
BSSCommerce-B2B
Shopify Partner
1708 511 571

This is an accepted solution.

@Emiway , remove previous code and try this one

.background-media-text--750 .background-media-text__container,
.background-media-text--750.background-media-text {
   position: relative!important;
}
.background-media-text--750.background-media-text__spacer {
   display:none!important;
}

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


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

View solution in original post

Replies 10 (10)

BSSCommerce-B2B
Shopify Partner
1708 511 571

@Emiway, add this code to the end of theme.css file

#shopify-section-template--17052487221293__background_image_text_iJdhxh img {
  object-fit: contain!important;
}

 Result:

BSSCommerceB2B_0-1727073822464.png

If it helps you, please like and mark it as the solution.

Best Regards 😊

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


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

Emiway
Pathfinder
208 0 42

there are multiple images i want all images to be in there original ratio

BSSCommerce-B2B
Shopify Partner
1708 511 571

You want all the images in your product page? 

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


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

Emiway
Pathfinder
208 0 42

i had added those images with {large image with text block}

 

Emiway
Pathfinder
208 0 42

Screenshot 2024-09-23 122203.png

BSSCommerce-B2B
Shopify Partner
1708 511 571

@Emiway, try this one

 

.background-media-text--750 img {
  object-fit: contain!important
}

 

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


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

Emiway
Pathfinder
208 0 42

i pasted it on theme.css but its not working

BSSCommerce-B2B
Shopify Partner
1708 511 571

This is an accepted solution.

@Emiway , remove previous code and try this one

.background-media-text--750 .background-media-text__container,
.background-media-text--750.background-media-text {
   position: relative!important;
}
.background-media-text--750.background-media-text__spacer {
   display:none!important;
}

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


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

Arif_Shopidevs
Shopify Partner
263 36 36

 

Step 1: Navigate to your Shopify admin panel and go to "Online Store."

Step 2: Click on "Themes" and then select  Edit code

Step 3:  Find base.css
Bellow image will fit allo

 

img.image-fit.background-media-text__image {
    object-fit: contain !important;
}

 

 

Arif_Shopidevs_0-1727074376569.png

Arif_Shopidevs_1-1727074385370.png

hope it will solve your issues.
Thank you

Found it helpful? Please like and mark the solution that helped you.
Slider Revolution - Create sliders, theme sections, banners, videos, pages, advanced animation, and social feeds.
Essential Grid Gallery - Create photo galleries, video galleries, portfolio galleries, product gallery, collection gallery and more.
EasyDisplay: Product Showcase - Easily display collections, related products, discounts, recently viewed items, and best sellers
Emiway
Pathfinder
208 0 42

i want that image to be full widht without losing its original ratio