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
Excursionist
104 0 41

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
8230 1975 2419

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 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 4 (4)

Made4uo-Ribe
Shopify Partner
8230 1975 2419

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 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.
lukafernada
Excursionist
104 0 41

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
8230 1975 2419

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 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.
lukafernada
Excursionist
104 0 41

Your a genius, thank you