How to Adjust Image and Video Cropping for Mobile in Shopify's Dawn Theme

Ensuring that images and videos are displayed correctly on mobile devices is crucial for providing a seamless user experience. This guide will help you adjust the mobile width settings in Shopify's Dawn theme to prevent cropping issues.

Step-by-Step Guide:

Step 1: Access the Theme Editor

  • From your Shopify admin, go to Online Store > Themes.
  • Find the Dawn theme, then click on Actions > Edit code.

Step 2: Locate the Liquid File

  • In the left-hand sidebar, navigate to the relevant Liquid file where the images or videos are defined. This might be a section like slideshow.liquid if you are adjusting the slideshow.

Step 3: Modify the Mobile Width

  • Find the CSS or inline style code that defines the width for mobile views. It might look something like this:


.slideshow__image { width: 300px; }

Change the width value from a fixed pixel (px) value to 100% to ensure it scales correctly on mobile devices:

.slideshow__image { width: 100%; }

Step 4: Save Your Changes

  • After making the necessary changes, click Save at the top right corner.

Step 5: Check Your Store

  • Navigate to your store on a mobile device to ensure the images or videos are displayed correctly without cropping.

By following these steps, you can ensure that images and videos in your Shopify store's Dawn theme are displayed properly on mobile devices, enhancing the overall user experience.

How to Adjust Image and Video Cropping for Mobile in Shopify's Dawn Theme
Back to blog

Leave a comment

Please note, comments need to be approved before they are published.