How do I switch the position of the PRODUCTS & COLLECTIONS column in the predictive search menu

How do I switch the position of the PRODUCTS & COLLECTIONS column in the predictive search menu

lukafernada
Excursionist
95 0 39

Image 17-09-2024 at 18.08.jpeg

 

It is important because when there are no collections to suggest, it squashes the products into the left column

Replies 3 (3)

Moeed
Shopify Partner
5323 1437 1723

Hey @lukafernada 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
@media screen and (min-width: 768px) {
.predictive-search__results-groups-wrapper {
    flex-flow: row-reverse !important;
}
}
</style>

RESULT:

Moeed_0-1726593738478.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Custom Design | Advanced Coding | Store Modifications


lukafernada
Excursionist
95 0 39

Hello,

 

Yes it flipped it round but my problem was that it pushed the products to the side when there was no availiable collections. Now it just pushes it to the other side: 

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

 

How do I fix this, or alternatively, is there a code to have the PRODUCTS column keep its size when it gets moved to the side?

lukafernada
Excursionist
95 0 39

First option, there was nothing of 'results' in search.json. Could this be in ecom-predictive-search.liquid you are referring to?

 

Second option, there was no three dots next to 'Search'.

 

Can you help still?