Hello my website is thedrakeplushie . com
Is there a way to make my featured product and my main product image smaller because right now they are too big. I just want to change the size on PC not on mobile.
Thank you
Topic summary
A Shopify store owner wants to reduce the size of featured product and main product images on desktop only, without affecting mobile display. Screenshots show oversized product images on the site.
Initial Solution Attempts:
- The_ScriptFlow provided CSS code adding 40px padding to product images
- This partially worked but created an unwanted grey background
- Additional code was provided to remove the background and adjust main product media
Mobile Display Issue:
- The desktop fixes caused product images to appear with excessive padding on mobile
- A media query was suggested to apply different padding (40px 20px) on screens under 767px width
- The user reported this solution didn’t resolve the mobile display problem
Current Status:
- The discussion remains unresolved as the mobile layout issue persists
- The_ScriptFlow is working on an updated solution
- Growthunitdigital offered an alternative approach using max-width constraints within a desktop-only media query (min-width: 769px), suggesting 400px as a starting point that can be adjusted
Please paste this code in the end of base.css file.
.media.media--transparent.media--hover-effect img {
padding: 40px;
}
Hello it dosen’t seem to work.
Actually it does work but there is this grey background on it and the main product photo didnt change
In order to change the background & make the product media image smaller you need to paste this coding.
.card--card, .card--standard .card__inner {
background: transparent !important;
}
.product__media.media.media--transparent img{
padding: 40px !important;
}
To fix this issue please paste the following code in the end of base.css file.
@media only screen and (max-width: 767px) {
.product__media.media.media--transparent img {
padding: 40px 20px !important;
}
}
Could you please let me know how it suppose to show? Or could you please share the screenshot of how it was before.
Thanks
Wait let me gave you solution code.
Yes, you can definitely adjust the size of your featured product or main product image only on desktop by targeting it with CSS media queries.
Here’s a quick fix you can try:
How to reduce product image size on desktop:
- Go to Online Store > Themes > Customize
- Click the three dots (⋮) in the top-left → choose Edit code
- Open your
base.cssortheme.cssfile (depends on your theme) - Add this code at the bottom:
css
CopyEdit
@media screen and (min-width: 769px) {
.product__media,
.product__media img,
.featured-product .media,
.featured-product .media img {
max-width: 400px !important;
height: auto !important;
margin: 0 auto;
}
}
You can tweak the
max-width: 400pxto something smaller or larger based on what looks best.
This will shrink your main and featured product images on desktop only, leaving mobile untouched.
If you’d like me to take a closer look and fine-tune the layout or spacing, feel free to reach out, I can assist further or send a short video walkthrough.





