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 I Donate Us Here!
Hi @Dazhal
Please add this code to Custom CSS of that section
img { object-fit: contain !important; }
- Helpful? Like and Accept solution!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. 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!
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024