Issue with Collection Visibility Layout - Minimal Theme

Solved

Issue with Collection Visibility Layout - Minimal Theme

Lucki92
Excursionist
13 0 2

Hi All,

 

I need help with visibility of collections in the page.

My page is showing only 1 collection per row and I want it to be like a grid.

 

Screenshot

Lucki92_2-1664546002920.png

 

Accepted Solution (1)
GabrielS
Shopify Partner
486 107 115

This is an accepted solution.

Oh, I initially thought that you want to apply it only for mobile phones.

 

Applying the code as below, without the media query would achieve a 2 column layout for desktop too.

.grid__item.grid-item.product-grid-item.large--one-quarter {
  max-width: 48%;
  float: left;
  margin: 1%;
}
.grid__item.grid-item.product-grid-item.large--one-quarter img {
  max-width: 100%;
}

 

The page seems to be a little buggy (for example, part of the first image is behind the navigation bar). You might consider hiring a developer to make further adjustments.

 

 

Regards,

Gabriel

Gabriel Soare | Web Developer
Are you looking to customize your Shopify or to fix a website bug?
You can reach me through my website gabrielsoare.com, DM, or email hello@gabrielsoare.com.
Have I helped you? Like my post.

View solution in original post

Replies 10 (10)

GabrielS
Shopify Partner
486 107 115

Hello,

 

Can you share your website link? To further clarify, you want that on mobile phones to have a 2 column layout?

Gabriel Soare | Web Developer
Are you looking to customize your Shopify or to fix a website bug?
You can reach me through my website gabrielsoare.com, DM, or email hello@gabrielsoare.com.
Have I helped you? Like my post.
Lucki92
Excursionist
13 0 2

Hi

 

Please find link here www.pepyr.com

 

Password - osiath

GabrielS
Shopify Partner
486 107 115

Hello,

 

The below CSS code would make your collection page grid to have 2 columns:

@media (max-width:768px) {
li.item.product {
  width: 50% !important;
  float: left;
}
}

Adding the above code at the end of your 'styles.scss.css' file should be working as expected.

GabrielS_0-1664549007382.png

 

Let me know if everything works as expected.

 

 

Cheers!

Gabriel

 

Gabriel Soare | Web Developer
Are you looking to customize your Shopify or to fix a website bug?
You can reach me through my website gabrielsoare.com, DM, or email hello@gabrielsoare.com.
Have I helped you? Like my post.
Lucki92
Excursionist
13 0 2

Hi Gabriel,

 

Sorry for missing the point. It is required at this page :

 

https://www.pepyr.com/pages/clothing

 

It is a custom page created using a code from youtube video.

GabrielS
Shopify Partner
486 107 115

Here you go:

@media (max-width:768px) {
.grid__item.grid-item.product-grid-item.large--one-quarter {
  max-width: 48%;
  float: left;
  margin: 1%;
}
.grid__item.grid-item.product-grid-item.large--one-quarter img {
  max-width: 100%;
}
}

 

 

GabrielS_1-1664549490493.png

 

 

Regards,

Gabriel

 

 

Gabriel Soare | Web Developer
Are you looking to customize your Shopify or to fix a website bug?
You can reach me through my website gabrielsoare.com, DM, or email hello@gabrielsoare.com.
Have I helped you? Like my post.
Lucki92
Excursionist
13 0 2

Tired adding in

 

styles.scss.liquid

style.css

styles-home.scss,liquid

 

It doesn't make any changes. I don't see styles.scss.css in my theme code.

GabrielS
Shopify Partner
486 107 115

Adding the code in any of the below files should be working as expected:

styles.scss.liquid

style.css

styles.scss.css (make use of the search bar to find this page)

 

I had a quick look and the code doesn't seems to be added - have you saved the file?

 

Alternatively, can you provide admin access? If yes, you can DM me and I'd be able to log in and apply the code.

Gabriel Soare | Web Developer
Are you looking to customize your Shopify or to fix a website bug?
You can reach me through my website gabrielsoare.com, DM, or email hello@gabrielsoare.com.
Have I helped you? Like my post.
Lucki92
Excursionist
13 0 2

Hi Gabriel,

 

Its working on mobile and I can see 2 products/collection in 1 row but on web it still shows 1 collection per row.

 

Lucki92_0-1664550986135.png

 

GabrielS
Shopify Partner
486 107 115

This is an accepted solution.

Oh, I initially thought that you want to apply it only for mobile phones.

 

Applying the code as below, without the media query would achieve a 2 column layout for desktop too.

.grid__item.grid-item.product-grid-item.large--one-quarter {
  max-width: 48%;
  float: left;
  margin: 1%;
}
.grid__item.grid-item.product-grid-item.large--one-quarter img {
  max-width: 100%;
}

 

The page seems to be a little buggy (for example, part of the first image is behind the navigation bar). You might consider hiring a developer to make further adjustments.

 

 

Regards,

Gabriel

Gabriel Soare | Web Developer
Are you looking to customize your Shopify or to fix a website bug?
You can reach me through my website gabrielsoare.com, DM, or email hello@gabrielsoare.com.
Have I helped you? Like my post.
Lucki92
Excursionist
13 0 2

HI Gabriel,

 

Thanks for your help. It worked perfectly.

 

Can you share a screenshot of the bug you mentioned. The Theme looks same to me as it was in live preview.

 

If there are bugs, then would definitely love to get them removed by professionals.