All things Shopify and commerce
Hi there,
I was able to make the product page for *mobile version full width but for desktop i was able to do it for the top side but not the left side of the screen. How do i close the white gap on the left side of the product page for *desktop only, mobile is perfect.
I added this code below and it worked, making desktop version full width however, for mobile version it pushed the Image, Description, Sizes, ect, out of the screen.
section#MainProduct-template--16107583570159__main {
max-width: 100%;
padding-left: 0px;
}
Is there code that will not trigger mobile version and only trigger the left screen for desktop
Thank you in advance.
Solved! Go to the solution
This is an accepted solution.
Hi @crepscity,
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Search file theme.liquid
Step 3: Insert this code above </head> tag:
<style>
@media only screen and (min-width: 750px) {
section#MainProduct-template--16107583570159__main {
margin-left: 0 !important;
padding-left: 0;
max-width: 100%;
}
}
</style>
Here is result:
Hope this can help you,
If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍
Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges: Get more sales with striking labels, badges, and banners from our 10,000+ available templates.
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
This is an accepted solution.
Hi @crepscity,
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Search file theme.liquid
Step 3: Insert this code above </head> tag:
<style>
@media only screen and (min-width: 750px) {
section#MainProduct-template--16107583570159__main {
margin-left: 0 !important;
padding-left: 0;
max-width: 100%;
}
}
</style>
Here is result:
Hope this can help you,
If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍
Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges: Get more sales with striking labels, badges, and banners from our 10,000+ available templates.
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
Hi, ive tried this but nothing happened?
This worked after i put it above </head> tag. I only observed that now. Thank you.
Also for *desktop version only, would you know how to lower the product description down as its too close to the header gridline. Mobile version is perfect.
And if possible for *desktop version only, where the products images are stacked, i would like to make a 1px gap between the images as of right now theres maybe a 2px gap going down and 4px going across and i would to imply a 1px all over for the stacked images for desktop version.
Thank you in advance.
Hi @crepscity,
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Search file theme.liquid
Step 3: Insert this code above </head> tag:
{% if template.name == 'product' %}
<style>
@media only screen and (min-width: 750px) {
.product__media-item:first-child .product__media {
margin-top: 16px !important;
}
.product__media-list.grid {
column-gap: 3px !important;
row-gap: 3px !important;
}
}
</style>
{% endif %}
Here is result:
Hope this can help you,
If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍
Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges: Get more sales with striking labels, badges, and banners from our 10,000+ available templates.
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
This is Richard from PageFly - Shopify Page Builder App
Hi @crepscity Please add code here to fix it:
Step 1: Online Stores > Themes > Edit code
Step 2: Choose file theme.liquid
Step 3: Add code above the tag </body>
<style>
#MainProduct-template--16107583570159__main .page-width{
max-width: 100%;
width: 100%;
}
</style>
Hope my solution will help you resolve the issue.
Best regards,
Richard | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
➜ Optimize your Shopify store with PageFly Page Builder (Free plan available)
All features are available from Free plan. Live Chat Support is available 24/7.
Hi, ive tried this but nothing happened ?
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