Make Text In 'Image With Text' Full Width With Image In Product Page Only

The text box width is always smaller than the image width in ‘Image with text’ so it leaves so much space on both sides (image below). Does anyone know how to make the text box width to be as same as the image width? Btw the theme is sense theme.

PS: Please make it only affect the product page, other places such as the homepage remain unchanged

Here is my store: https://b8ef01-3.myshopify.com/

password: euclew

Hi @JohnLiam231

Unable to see the this section on home page, where you added this section?

Hi @JohnLiam231

Please add this code before tag in your theme.liquid file


Thanks, it works, but is it possible to make it only affect the product page and keep the homepage “image with text” unchanged?

You can add this code below to Custom CSS of that section in your product template so it will change for that section only

@media screen and (max-width: 749px) {
.image-with-text .gradient { padding: 4rem 0px !important; }
}

1 Like

Thanks, it works!

1 Like

Happy I could help