Shopify themes, liquid, logos, and UX
For Dawn Theme, image with text.
Currently my image will not fit. I don't want the image and text section to over lap or the image to be cropped or distorted. I want the image to use the object-fit scale down or contain.
The below logo contains the word "Lossnay" and the y on the end is being cropped.
https://dd42f1-55.myshopify.com/pages/heat-recovery-ventilation
Password: staetu
Thank you
Step 1: Go to Admin -> Online store -> Theme > Edit code
Step 2: Find the file theme.liquid
Step 3: Paste the below code before </body> on theme.liquid
<style>
.section-template--15660508512319__image_with_text_nDeGkb-padding img {
object-fit: contain!important;
}
</style>
Result:
Hope this can help you,
If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍
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
Hi @Dazhal
Please add this code to Custom CSS of that section
img { object-fit: contain !important; }
- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
Hi @Dazhal ,
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. In theme.liquid, paste the below code before </head>
<style>
.section-template--15660508512319__image_with_text_nDeGkb-padding img {
object-fit: contain !important;
}
</style>
If my reply is helpful, kindly click like and mark it as an accepted solution.
Thanks!
Discover how to increase customer engagement on your store with articles from Shopify A...
By Jacqui Apr 23, 2025Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025