Re: How to stop PRODUCTS column squishing onto the side when there's no more collections to show

Solved

How to stop PRODUCTS column squishing onto the side when there's no more collections to show

lukafernada
Pathfinder
157 2 57

It seems there are fixed shapes for the columns, how do I make them stay in one place? Below is an example of my problem:

Image 17-09-2024 at 18.35 (1).jpegImage 17-09-2024 at 18.35.jpeg

Accepted Solution (1)
Made4uo-Ribe
Shopify Partner
10211 2427 3081

This is an accepted solution.

Oh, Check this one. I like to use grid that flex. 

 

 

div#predictive-search-results div#predictive-search-results-groups-wrapper {
    display: grid;
    grid-template-columns: 1fr 0.5fr;
}

.predictive-search__results-groups-wrapper .predictive-search__result-group:first-child {
    grid-column: 2;
    grid-row: 1;
}

.predictive-search__results-groups-wrapper .predictive-search__result-group:last-child {
    grid-column: 1;
    grid-row: 1;
}

 

 

And Save.

Result:

Made4uoRibe_0-1726664785400.pngMade4uoRibe_1-1726664796477.pngMade4uoRibe_2-1726664805802.png

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 are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.

View solution in original post

Replies 4 (4)

Made4uo-Ribe
Shopify Partner
10211 2427 3081

Hi @lukafernada 

Check this one.

From you Admin page, go to Online Store > Themes

Select the theme you want to edit

Under the Asset folder, open the main.css(base.css, style.css or theme.css)

Then place the code below at the very bottom of the file.

 

 

@media screen and (min-width: 750px) {
    .predictive-search__results-groups-wrapper .predictive-search__result-group:first-child {
        flex: unset;
    }
}

 

 

And Save.

Result:

Made4uoRibe_0-1726610246939.png

 

 

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 are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
lukafernada
Pathfinder
157 2 57

Thank you it does work, but it undoes the 'flex: 32%' I already coded for it

Image 17-09-2024 at 18.35 (1).jpeg

How can I keep this?

Made4uo-Ribe
Shopify Partner
10211 2427 3081

This is an accepted solution.

Oh, Check this one. I like to use grid that flex. 

 

 

div#predictive-search-results div#predictive-search-results-groups-wrapper {
    display: grid;
    grid-template-columns: 1fr 0.5fr;
}

.predictive-search__results-groups-wrapper .predictive-search__result-group:first-child {
    grid-column: 2;
    grid-row: 1;
}

.predictive-search__results-groups-wrapper .predictive-search__result-group:last-child {
    grid-column: 1;
    grid-row: 1;
}

 

 

And Save.

Result:

Made4uoRibe_0-1726664785400.pngMade4uoRibe_1-1726664796477.pngMade4uoRibe_2-1726664805802.png

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 are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
lukafernada
Pathfinder
157 2 57

Your a genius, thank you