Shopify themes, liquid, logos, and UX
I understand his requires code, which i am happy to paste in, if i am given instructions as to what and where.
Thank you in advance.
Solved! Go to the solution
This is an accepted solution.
Please update the code to this
<style>
@media (min-width: 60em) {
.product.product--gallery-size-large .product__top {
grid-template-columns: 65% 35% !important;
}
.product__media[data-gallery-style=grid] {
grid-gap: 0 ! important;
}
.product__meta {
margin-left: 40px !important;
}
.product { max-width: 100% !important; padding: 0 40px !important; }
}
</style>
- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Amazon Products Importer - Import Amazon Products to Dropship in Your Store!
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
Hi @onte
Please go to your Online Store > Themes > click "..." > Edit code, open theme.liquid file, after <head> paste this code.
<style>
@media (min-width: 60em) {
.product.product--gallery-size-large .product__top {
grid-template-columns: 65% 35% !important;
}
.product__media[data-gallery-style=grid] {
grid-gap: 0 ! important;
}
.product__meta {
margin-left: 40px !important;
}
}
}
</style>
- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Amazon Products Importer - Import Amazon Products to Dropship in Your Store!
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
This is great. and worked.
My next question is how do i reduce the padding/white space on either edge of page.
See image below how to reduce the space that is marked in green.
Thank you in advance
This is an accepted solution.
Please update the code to this
<style>
@media (min-width: 60em) {
.product.product--gallery-size-large .product__top {
grid-template-columns: 65% 35% !important;
}
.product__media[data-gallery-style=grid] {
grid-gap: 0 ! important;
}
.product__meta {
margin-left: 40px !important;
}
.product { max-width: 100% !important; padding: 0 40px !important; }
}
</style>
- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Amazon Products Importer - Import Amazon Products to Dropship in Your Store!
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
THANK YOU SO MUCH. THIS WORKED and was so easy to implement.
Thank you
Hello Onte,
You can achieve the desired layout by adjusting the CSS in your theme. Follow these steps:
.product__media-container { width: 105% !important; } .product.product--gallery-size-large.product--gallery-style-grid { padding-left: 5px !important; padding-right: 5px !important; }
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).
You can tweak the width or padding values to find the perfect layout for your needs. Let me know if you need further assistance!
Thank you.
Shubham | Untechnickle
Helping for free: hello@untechnickle.com
Don't forget to say thanks, it'll make my day - just send me an email!
Get Revize for Free | Let your shoppers edit orders post-purchase | Get Zero Support Tickets | #1 Order Editing + Upsell App
Hi @onte ,
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:
.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 */
}
<div class="product__layout">
<div class="product__media-wrapper">
{{ product.media }}
</div>
<div class="product__info">
{{ product.description }}
{{ product.price }}
{{ product.form }}
</div>
</div>
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.
Thanks & Regards
Akshay Bhatt
Hi @onte ,
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:
.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 */
}
<div class="product__layout">
<div class="product__media-wrapper">
{{ product.media }}
</div>
<div class="product__info">
{{ product.description }}
{{ product.price }}
{{ product.form }}
</div>
</div>
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.
Thanks & Regards
Akshay Bhatt
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025