Topic summary
A user seeks to modify product image display on mobile devices for their Shopify store (dewority.com), wanting to remove blue spacing and achieve full-width images similar to a reference example.
Solutions Provided:
Two developers offered CSS code snippets to:
- Make product images full-width on mobile (max-width: 768px/749px)
- Remove padding and margins
- Hide media toggle elements
Follow-up Issues:
-
Image height: Additional CSS provided to increase product photo height using
padding-top: 100%orheight: 15vh -
Image slider behavior: User reports slider shows β5β when only 4 images exist, and wants continuous looping. Developer notes the back arrow can return to first image, but full customization would require 1-2 hours of custom coding
-
Dot appearance: User asks about customizing navigation dots; developer confirms theme lacks built-in options and would require custom development
Status: Initial spacing issue resolved with CSS; additional customization requests identified as requiring more extensive custom coding work.
Kan iemand mij helpen hoe ik dit kan wijzigen, zodat het uiterlijk van mijn productfoto wordt gewijzigd.
Hi @Daan7 , kindly provide your store URL please and if it is password protected, please share the password as well. Thanks
Hallo, dit is de url https://dewority.com/
Als het goed is moet het werken.
Hi @Daan7
- Go to Online Store β Theme β Edit code.
- Open your theme.css / based.css file and paste the code in the bottom of the file.
@media(max-width:768px){
.slider.slider--mobile li {
width: 100% !important;
margin-left: 0 !important;
}
}
Result:
If my reply is helpful, kindly click like and mark it as an accepted solution.
If you are happy with my help, you can help me buy a COFFEE
Thanks!
Hello @Daan7 ,
- In your Shopify Admin go to online store > themes > actions > edit code
- Find Asset > base.css and paste this at the bottom of the file:
@media (max-width: 749px) {
body .product__media-list .product__media-item {
width: 100%;
padding: 0 !important;
}
body main product-info {
padding-top: 0 !important;
}
body .grid--peek.slider .grid__item:first-of-type {
margin-left: 0;
}
.product__media-toggle:after {
display: none;
}
.global-media-settings:after {
display: none;
}
body .product__media-list .product__media-item .product-media-container {
max-width: 100% !important;
border: none !important;
}
}
Heel erg bedankt dus deze 2 codes onder elkaar? zo ja, dan heb ik het goed gedaan. Nog 2 vragen hoe kan ik de beeldhoogte van de productfoto groter maken ? trouwens, als ik nu glijd, stopt het aan het einde, hoe kan ik dan blijven glijden? Dat je terugkomt op de eerste.
Heel erg bedankt Nog 2 vragen hoe kan ik de beeldhoogte van de productfoto groter maken ? trouwens, als ik nu glijd, stopt het aan het einde, hoe kan ik dan blijven glijden? Dat je terugkomt op de eerste.
To increase the height of the product image, you can adjust the following CSS code:
@media (max-width: 749px) {
body .product-media-container.constrain-height .media {
padding-top: 100%;
}
}
To keep the slider looping, you can use the back arrow to return to the first image. Hereβs a screenshot for reference: Screenshot.
- Go to Online Store β Theme β Edit code.
- Open your theme.css / based.css file and paste the code in the bottom of the file.
@media(max-width:768px){
.product__media.media.media--transparent.pl-parent img {
object-fit: fill !important;
}
.product__media.media.media--transparent.pl-parent {
height: 15vh !important;
}
}
Result:
If my reply is helpful, kindly click like and mark it as an accepted solution.
If you are happy with my help, you can help me buy a COFFEE
Thanks!
Bedankt, maar nu staat er bijvoorbeeld 5 terwijl ik 4 afbeeldingen heb.
Kan ik ook iets doen aan het uiterlijk van de stippen?
Yes, this is possible with custom code and will take approximately 1-2 hours. Additionally, your theme does not have an option to modify the appearance of the dots.





