Shopify themes, liquid, logos, and UX
Hi Guys
I need some help with my store.
Theme: Dawn v10
URL: https://masaro-clothing.myshopify.com/
Pass: ahnaip
There's this white space on right side of the screen of the slider I have edited.
On mobile the same issue occurs but instead of white space I see the next and previous product.
If anybody can help me with the right direction. I'd be really grateful.
Thank you
Hello @deadmeow5 this could be done by making some changes in your theme files.
Simply go to Online Store > Themes > Edit Code. Then find theme.liquid and then find <head> and past the following code below this, it will fix the white space for desktop. Please see the image below. And It will also remove the white space for the mobile on the left side. And also make this product full width on mobile, please see the image below.
<style>
@media screen and (min-width: 990px)
.grid--3-col-desktop .grid__item {
width: calc(34.33% - var(--grid-desktop-horizontal-spacing) * 2 / 3);
max-width: calc(33.72% - var(--grid-desktop-horizontal-spacing) * 2 / 3) !important;
}
@media screen and (max-width: 749px)
.grid--peek.slider .grid__item:first-of-type {
margin-left: 0px !important;
}
@media screen and (max-width: 749px)
.slider--tablet.grid--peek.grid--1-col-tablet-down .grid__item, .slider--mobile.grid--peek.grid--1-col-tablet-down .grid__item {
width: calc(100% - var(--grid-mobile-horizontal-spacing)) !important;
}
</style>
this solution includes the coding part. So, hiring an expert is recommended.
Regards,
Osama Farooqi
Hi @osamafarooqi71 ! Thank you so much for the code. It worked like a charm for desktop. And to some extent for mobile as well.
But in mobile when we swipe to the next product there is some space on the left side through which the previous product is visible.
Does the code work for a landings page with the same problem to ?
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