How can I make an 'image with text' image full width?

How can I make an 'image with text' image full width?

TimMarner
Shopify Partner
9 0 1

Hello,

 

I am trying to make the images in my 'image with text' blocks fill to the full width of the page.

 

This is what it looks like now....

 

Screenshot 2024-10-03 at 12.53.21.png

 

I want the image of the artwork to fill the right side so it ignores the max-width of the page.

 

And I would like to do this with multiple images... Is there a piece of CSS I can add to each of the blocks so I can choose which do this?

 

I've used the Dawn theme if this matters

 

Thank you for any help

 

Website: https://grahamfoster.myshopify.com/ 

Password: graham

 

Tim Marner®
Award-Winning Branding Agency In Bolton

https://timmarner.co.uk
Replies 4 (4)

BlackCro
Shopify Partner
103 19 18

Tim 

 

A quick and easy solution would be to remove the "page-width" from the container div in image-with-text.liquid, however that would make the whole section full width which may not be desirable. 

 

Screenshot 2024-10-03 at 14.12.50.png

 

I'd have to dig into it a little deeper to see the best way to keep the page width while only extending the image, but it could be achieved.

 

Thanks, Simon 

BlackCro.co.uk

CRO & Development Agency



Better Forms - Get a better contact form today!
TimMarner
Shopify Partner
9 0 1

Thank you - yes it worked to make the images full width but also made the text full width!

 

How can I keep the text to fit in the max-width of the page?

Tim Marner®
Award-Winning Branding Agency In Bolton

https://timmarner.co.uk

MooseDesk
Shopify Partner
563 68 168

Hi @TimMarner ,

 

Thanks for reaching out to the community. We are MooseDesk, a comprehensive Live Chat, FAQ & Helpdesk App designed to elevate your customer support experience.

Please follow these steps:

  • Step 1: Go to edit code in the theme liquid
    MooseDesk_2-1728039046466.png

     

  • Step 2: Search for the file image-with-text.liquid
    MooseDesk_3-1728039109935.png

     

  • Step 3: In the image-with-text.liquid file, search keyword page-width
    MooseDesk_4-1728039154659.png

     

  • Step 4: Remove the class page-width
  • Step 5: Save and check again

I hope this answer addresses your question effectively. If you found it helpful, we’d appreciate a 'LIKE' for MooseDesk. If your issue is resolved, please mark this as 'SOLUTION’.

In the meantime, our MooseDesk Team is always here to help with customer support solutions. We’re passionate about improving your customer experiences through our Live Chat, FAQ, and Helpdesk App.

With MooseDesk, you can engage with customers through omnichannel support, manage inquiries with a robust ticket system, and provide quick responses.

MooseDesk_0-1728038987410.png

 

 

  • Or you can let customers resolve questions faster with in-built FAQ, Order tracking module, and more.

MooseDesk_1-1728038987389.png

 

 

Once again, keep up the fantastic work, and I wish you the best of luck in the future! 



Was your question answered? Giving MooseDesk's reply a Like or marking it as an Accepted Solution!


MooseDesk - #All-in-one Customer Support and Helpdesk Solution for Shopify Merchants

Install now. Be our early bird and get all features free forever.

TimMarner
Shopify Partner
9 0 1

Thanks for your help. This has made the text also fill the whole page width, but I only want the images to stretch it.

 

Screenshot 2024-10-08 at 15.08.11.png

 

How can I make sure the text part stays within my max-width? thanks

Tim Marner®
Award-Winning Branding Agency In Bolton

https://timmarner.co.uk