Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi guys,
I want to adjust the Product media margin within the 'Product-media-container' area. (so the 'Product-media-container' and Product information's positions would not get affected).
My URL: https://189ee3-2.myshopify.com/products/basic-t-shirt
Thank you!
Solved! Go to the solution
This is an accepted solution.
Hey @collins276
Apologies for the confusion, You may try this code with the same steps.
<style>
.product-media-container.constrain-height.media-fit-contain {
margin: 0 !important;
}
</style>
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
Hey @collins276
Follow these Steps:
1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code in the bottom of the file above </body> tag
<style>
.product-media-container.constrain-height.media-fit-contain {
margin: 0 !important;
width: 100% !important;
}
.product__media.media.media--transparent img {
object-fit: fill !important;
}
</style>
RESULT:
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
Sorry for not clarifying my question.
I want to move the pictures to the left Or to the right some px (Pictures sizes would not get affected)
This is an accepted solution.
Hey @collins276
Apologies for the confusion, You may try this code with the same steps.
<style>
.product-media-container.constrain-height.media-fit-contain {
margin: 0 !important;
}
</style>
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
Thank you😀
Thank you for your reply. I'm glad to hear that the solution worked well for you. If you require any more help, please don't hesitate to reach out. If you find this information useful, a Like would be greatly appreciated.
We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024The Hydrogen Visual Editor is now available to merchants in Shopify Editions | Summer '...
By JasonH Sep 2, 2024