Hello,
I need to know how to change the size of the images in my product pages.
i would like to change the layout so the images are bigger with less white space and less white space around the text. I have attached an image of the style i would like.
I would like the images to be the focal point of the page rather than the info taking up so much space.
If its not possible to remove all the white space around photos then i am happy to have the just a small boarder like the second image i attached.
The first part increases the size of the product images, and the second part reduces the white space to the left and right of the content (image + text).
Save the changes and check your product pages.
You can tweak the width or padding values to find the perfect layout for your needs. Let me know if you need further assistance!
To make the images in your product pages larger with less white space, while reducing the space around text, follow these steps tailored for the Spark theme:
1. Identify the Product Page Template- Go to Online Store > Themes > Actions > Edit Code.
Locate the product template file: typically named product.liquid or product-template.liquid.### 2. Adjust Image Size in CSS- Open the theme’s CSS file: base.css or theme.css.
Add this code at the bottom to increase the size of images and adjust spacing:
.product__media-wrapper {
max-width: 100%; /* Allow images to take the full width */
margin: 0 auto; /* Center the image */
padding: 0; /* Remove unnecessary padding */
}
.product__media {
border: 2px solid #f5f5f5; /* Optional: Thin border around the images */
border-radius: 5px; /* Optional: Slightly rounded corners */
}
.product__info {
padding: 20px; /* Reduce space around text */
}
.product__details {
max-width: 600px; /* Adjust text width to balance layout */
margin: 0 auto; /* Center-align text */
}
3. Adjust the HTML for Layout- Go back to the product.liquid or product-template.liquid file.
Locate the
containing product images (usually has classes like product_media or product-gallery).
Ensure it wraps all images properly for consistent spacing.
4. Make Images Focal Point- Move the image section above the text section (if not already).
5. Test and Adjust- Save changes and preview your product pages.
Tweak max -width, padding and margin values in the CSS until it matches your desired look.
Got it! If you found my suggestions helpful, please consider liking or marking it as a solution.
Your feedback is appreciated! If you have any more questions or need further assistance, just let me know.
To make the images in your product pages larger with less white space, while reducing the space around text, follow these steps tailored for the Spark theme:
1. Identify the Product Page Template- Go to Online Store > Themes > Actions > Edit Code.
Locate the product template file: typically named product.liquid or product-template.liquid.### 2. Adjust Image Size in CSS- Open the theme’s CSS file: base.css or theme.css.
Add this code at the bottom to increase the size of images and adjust spacing:
.product__media-wrapper {
max-width: 100%; /* Allow images to take the full width */
margin: 0 auto; /* Center the image */
padding: 0; /* Remove unnecessary padding */
}
.product__media {
border: 2px solid #f5f5f5; /* Optional: Thin border around the images */
border-radius: 5px; /* Optional: Slightly rounded corners */
}
.product__info {
padding: 20px; /* Reduce space around text */
}
.product__details {
max-width: 600px; /* Adjust text width to balance layout */
margin: 0 auto; /* Center-align text */
}
3. Adjust the HTML for Layout- Go back to the product.liquid or product-template.liquid file.
Locate the
containing product images (usually has classes like product_media or product-gallery).
Ensure it wraps all images properly for consistent spacing.
4. Make Images Focal Point- Move the image section above the text section (if not already).
5. Test and Adjust- Save changes and preview your product pages.
Tweak max -width, padding and margin values in the CSS until it matches your desired look.
Got it! If you found my suggestions helpful, please consider liking or marking it as a solution.
Your feedback is appreciated! If you have any more questions or need further assistance, just let me know.