Make Collection Images Full Width on Mobile

Solved

Make Collection Images Full Width on Mobile

Mg71
Excursionist
29 0 6

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!

Screenshot 2024-07-01 120631.png

 

Accepted Solutions (2)

Made4uo-Ribe
Shopify Partner
6961 1651 2036

This is an accepted solution.

Hi @Mg71 

check this one. 

  1. From you Admin page, go to Online Store > Themes
  1. Select the theme you want to edit
  2. Under the Asset folder, open the main.css(base.css, style.css or theme.css)
  3. Then place the code below at the very bottom of the file.

 

@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;
}
}

 

  • And Save. 
  • Result:
  • Made4uoRibe_0-1719851030074.png

     

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.

View solution in original post

Made4uo-Ribe
Shopify Partner
6961 1651 2036

This is an accepted solution.

Do you mean this one right? 

Made4uoRibe_0-1720038326863.png

 

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!

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.

View solution in original post

Replies 6 (6)

CyberCraft_11
Shopify Partner
19 1 2

hello @Mg71 

Can you please share the store URL and password (if need) so i can check and give you best suggestion...

 

BSSCommerce-HDL
Shopify Partner
1060 362 432

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 </head> 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 😍

If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here .


B2B Solution & Custom Pricing | Product Labels by BSS


Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency

BSS-TekLabs
Shopify Partner
608 172 204

- Here is the solution for you @Mg71 
- Please follow these steps: 

step.png

- Then find the theme.css file.
- Then add the following code at the end of the file and press 'Save' to save it.

@media only screen and (max-width: 767px) {
.list__collections [data-grid] .grid__item {
    width: 96% !important;
}
}

- Here is the result you will achieve:

BSSTekLabs_0-1719850463541.png

 

- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.

If our suggestions are useful, please let us know by giving it a like or marking it as a solution .
For give Gift to customers and Upsell in Cart, check out Salepify: Free Gifts with purchase

Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency

Made4uo-Ribe
Shopify Partner
6961 1651 2036

This is an accepted solution.

Hi @Mg71 

check this one. 

  1. From you Admin page, go to Online Store > Themes
  1. Select the theme you want to edit
  2. Under the Asset folder, open the main.css(base.css, style.css or theme.css)
  3. Then place the code below at the very bottom of the file.

 

@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;
}
}

 

  • And Save. 
  • Result:
  • Made4uoRibe_0-1719851030074.png

     

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
Mg71
Excursionist
29 0 6

How can I exclude the related products collection from being grouped in this? I'd like that to not be changed.  Thanks!

Made4uo-Ribe
Shopify Partner
6961 1651 2036

This is an accepted solution.

Do you mean this one right? 

Made4uoRibe_0-1720038326863.png

 

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!

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.