Re: Make Collection image smaller in "collections" page. Also, give collection image round

Solved

Make Collection image smaller in "collections" page. Also, give collection image rounded corners.

shortcomings
Excursionist
46 0 14

Hello everyone, I'm trying to make my 'classics' collection image smaller, as right now it is taking up almost the whole page in the Collections tab of my main menu. Is there any way to make this smaller? Also, while we're at it, any way to give it rounded corners? Maybe 10/15% rounded? Thank you!

 

www.shortcomings.store

pass: aloe

Screenshot 2023-08-30 at 2.48.55 PM.png

Accepted Solution (1)

RockTechnolabs
Shopify Partner
251 36 60

This is an accepted solution.

Hi @shortcomings 

Try this. 

  • From your Shopify admin dashboard, click "Online Store" and "Themes".
  • Find the theme you want to edit and click "Actions" and then "Edit code".
  • In the "Assets" folder, click on the "section-collection-list.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

 

 

.collection-list__item:only-child {
    max-width: calc(33.33% - var(--grid-desktop-horizontal-spacing) * 2 / 3) !important;
}

 

Copy

 

  • And Save.  

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

banned

View solution in original post

Replies 5 (5)

Made4uo-Ribe
Shopify Partner
7736 1869 2284

Hi @shortcomings 

Try this. 

  • From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  • Find the theme that you want to edit and click on "Actions" and then "Edit code".
  • In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

.card.card--standard.card--media {
    width: 20%;
}
.card .card__inner .card__media {
    border-radius: 15%;
}

 

  • And Save. 
  • Im not sure what size youll like to be in your collection. You can adjust it anyway. 

 

I hope it help. 

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.
SamiGiftsi
Excursionist
20 0 3

Hiya,

This has worked for me perfectly, but how do I then centre my collections? The smaller I make the collection images the more it's putting them to the left side of the screen.

Thanks!

RockTechnolabs
Shopify Partner
251 36 60

This is an accepted solution.

Hi @shortcomings 

Try this. 

  • From your Shopify admin dashboard, click "Online Store" and "Themes".
  • Find the theme you want to edit and click "Actions" and then "Edit code".
  • In the "Assets" folder, click on the "section-collection-list.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

 

 

.collection-list__item:only-child {
    max-width: calc(33.33% - var(--grid-desktop-horizontal-spacing) * 2 / 3) !important;
}

 

Copy

 

  • And Save.  

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

banned
shortcomings
Excursionist
46 0 14

Thank you, this worked great. Any way to give the card rounded corners?

RockTechnolabs
Shopify Partner
251 36 60

add this CSS just below the previous CSS.

 

 

.collection-list__item .card__inner .card__media {
    border-radius: 15% !important;
}

 

Copy

 

RockTechnolabs_0-1693545638231.png

 

banned