How do I adjust the width of the caption box. It’s too wide and it cuts into an image to the right of it.
- @tzyz75 You can add line break after CDW in theme editor
- Or you can use custom css :
.image-with-text__text–caption {
max-width: 400px;
}
Thank you for the quick reply. How do I add the line break?
Hey @tzyz75
Follow these Steps:
- Go to Online Store
- Edit Code
- Find theme.liquid file
- Add the following code in the bottom of the file above </ body> tag
<style>
@media screen and (min-width: 768px) {
p.image-with-text__text.image-with-text__text--caption.caption-with-letter-spacing.caption-with-letter-spacing--medium.caption-with-letter-spacing {
width: 55% !important;
}
}
</style>
RESULT:
If I managed to help you then a Like would be truly appreciated.
Best,
Moeed
That worked perfectly! Thank you. Any way to change the CDW letter color to red/
I managed to screw it up. I changed the caption text style to subtitles and now it’s too wide again
@Moeed My home page looks bad now. Please help! My image on the right is getting cut off
hii @tzyz75
Your image is being cropped because the section is likely using Adapt to first imageoff or is set to a fixed height like Small Medium Large which forces cropping.
Go to:
Online Store Customize Home page Hero/Image banner section
Then
Change Section height to Adapt to image
Or disable any Crop image to fill setting
Make sure the image alignment is set correctly e.g., Right or Center
If that doesn’t fix it your theme is probably using:
object-fit: cover;
In that case, change it to:
object-fit: contain;


