Re: (Dawn Theme) How to make multicolumn images smaller for mobile

(Dawn Theme) How to make multicolumn images smaller for mobile

IllIlIl1
Excursionist
35 0 10

How to make multicolumn images smaller for mobile only? Without container overflow when scrolling

 

Store link- https://b01a38-40.myshopify.com/

Code- dapolu

Replies 5 (5)

Dan-From-Ryviu
Shopify Partner
9611 1929 1963

Hi @IllIlIl1 

Please add this code to Custom CSS of that section 

@media (min-width: 749px) {
    .multicolumn-card__image-wrapper { max-with: 100px; margin: 0 auto !important; }
}

Screenshot 2024-08-16 at 11.22.05.png

- Helpful? Like and Accept solution! or Buy me coffee
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Ryviu: Aliexpress Reviews - AliExpress Reviews Importer, one-click import aliexpress reviews, export reviews to CSV file.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

IllIlIl1
Excursionist
35 0 10

I added it but the images didn't change.

Sweans
Shopify Partner
406 80 124

Hi @IllIlIl1 ,

to make multicolumn images smaller for mobile, follow these steps:

 

1.Go to your Shopify admin panel.

2.Navigate to Online Store > Themes.

3.Find your theme and click on Customize.

4.Click Actions > Edit code.

5.In the left sidebar, under the Layout directory, select base.css.

 

@media screen and (min-width: 750px) and (max-width: 989px) {
    .slider--tablet.grid--peek.grid--2-col-tablet .grid__item, .slider--tablet.grid--peek.grid--2-col-tablet-down .grid__item {
        width: calc(21% - var(--grid-desktop-horizontal-spacing) - 3rem) !important;//adjust width as your requirement
    }
}

@media screen and (max-width: 989px) {
    .slider.slider--tablet {
        overflow: auto !important;
    }
}

 

then save your changes

Result:-

Sweans_0-1723783051397.png

 

I hope this helps! If it does, please like it and mark it as a solution! 

If you need further assistance, feel free to reach out!

Regards,
Sweans

- Was my reply helpful? Please Like and Accept the Solution or let me know by Buying me coffee!
- Want to modify or custom changes on store Hire me.
- Feel free to contact me at [email protected] regarding any help.
- To know more about me check out www.sweans.com

GTLOfficial
Shopify Partner
554 120 109

Hello @IllIlIl1 

Go to online store ----> themes ----> actions ----> edit code ---->assets ----> section-multicolumn.css ----> line number 90
search this code

.multicolumn-card-spacing {
padding-top: 2.5rem;
margin-left: 2.5rem;
margin-right: 2.5rem;
}

and replace with this code

.multicolumn-card-spacing {
margin-left: 4.5rem;
margin-right: 0.5rem;
}

 result
10.png

If this was helpful, hit the like button and accept the solution.
Thanks

- Buy me a Pizza
- If helpful then please Like and Accept Solution.
- Want to modify or custom changes or bug fix on the store Hire me. GTL web solutions
- Want Complete Storefront: Send an email ⇨- Email: [email protected] - Skype: ritesh_27dh

BSS-TekLabs
Shopify Partner
2350 702 827

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

z5686811214059_e66de1953f1db631f9134af5cdb796ad.jpg

- Then find the theme.liquid file.
- Then add the following code at the before tag </head> and press 'Save' to save it.

<style>
@media only screen and (max-width: 600px) {
.multicolumn-card__image-wrapper {
    max-width: 120px !important;
    margin: auto !important;
}
}
</style>

- Here is the result you will achieve:

BSSTekLabs_0-1723802616792.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.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now