How to revert changes in main-search.liquid code for better search results?

Hello,

we did some changes in the code but unfortunately there are now some problems.

Because as soon as I search for something in the shop this URL shows up e.g.:

https://food-pipe.com/search?q=apfel&q=title%3Aapfel&options%5Bprefix%5D=none&type=product

This means that only products get shown at the search result page which also have the search term in their title.

We dont want that anymore but unfortunately no matter what i edit in the main-search.liquid code the URL doesnt change. Do you know if I need to change other data and if so, which one and how?

Thanks for your answer and kind regards,

foodpipe

Hey @rshb017 .

Thanks for reaching out.

I appreciate the context that you have provided us as that is very helpful. You can duplicate your theme by navigating to Online store > Themes > Actions > Duplicate. I took a screenshot from my test store to show you the section I am referring to:

You will want to create a duplicated version of your theme to have a saved version of the online store. Once you have successfully duplicated your theme, you can attempt to revert the coding changes by Rolling back to an older version of your theme. You can roll back the changes on your theme by navigating to Online store > Themes > Actions > Edit code. When you are editing the code of the theme, you can select the drop down titled Older versions.

Alternatively, you can reach out to Shopify Experts if you are interested in hiring an individual to complete this for you.

Let me know if that works for you.

Unfortunately the changes were made at the 8th November and cant go back to the time :confused:

Can you maybe tell me in which data I can change the URL for the search result page?