How can I make the collection images full width on mobile without the second image on the side showing?
I’d also like to keep the slider under the collections. I’m using pipeline.
Thanks!
How can I make the collection images full width on mobile without the second image on the side showing?
I’d also like to keep the slider under the collections. I’m using pipeline.
Thanks!
Hi @Mg71 ,
Step 1: Go to Shopify Admin → Online Store ->Theme → Edit code
Step 2: Search file theme.liquid
Step 3: Insert this code above tag:
@media only screen and (max-width: 767px) {
.list__collections [data-grid] .grid__item {
width: 100% !important;
}
.list__collections [data-grid] {
padding-left: 0 !important;
}
}
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
@media only screen and (max-width: 767px) {
.list__collections [data-grid] .grid__item {
width: 96% !important;
}
}
Hi @Mg71
check this one.
@media only screen and (max-width: 767px) {
[data-grid]:not([data-grid-no-gutters]), [data-grid][data-grid-no-gutters], [data-grid] {
width: 100%;
}
.list__collections [data-grid], [data-grid][data-grid-small] [data-item] {
width: 100%;
}
.wrapper.section-padding.title-center {
padding-right: 0px;
}
}
How can I exclude the related products collection from being grouped in this? I’d like that to not be changed. Thanks!
Do you mean this one right?
You can replace on this one.
@media only screen and (max-width: 767px) {
[data-grid]:not([data-grid-no-gutters]), [data-grid][data-grid-no-gutters], [data-grid] {
width: 100%;
}
.list__collections [data-grid] {
width: 100%;
}
.wrapper.section-padding.title-center {
padding-right: 0px;
}
}
And Save.
Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!