Search Page

Solved

Search Page

eslamibrahim
Shopify Partner
49 0 6

I want two products to appear when I search for any word on the search page and get same still like as Category page.

Search Page:

https://level-up.gg/search?type=product%2Cpage%2C&options%5Bprefix%5D=last&q=ps5&filter.p.product_ty...

 

eslamibrahim_1-1720561775058.png

 Category page :

eslamibrahim_2-1720561824693.png

 

https://level-up.gg/collections/playstation

Accepted Solution (1)

PageFly-Richard
Shopify Partner
4991 1118 1796

This is an accepted solution.

Hi @eslamibrahim 

 

This is Richard from PageFly - Shopify Page Builder App

 

Please add this code to your theme.liquid above the </head> to get this solved

Step 1: Online Stores > Themes > More Actions > Edit code

Step 2: click on theme.liquid and paste the code above the </head>

{% if template contains 'search' %}
<style>
@media (max-width: 767px) {
#shopify-section-template--16931611345130__main .main-products-grid__results > ul {
grid-template-columns: repeat(2,minmax(0,1fr));
}
}
</style>
{% endif %}

PageFlyRichard_0-1720571410915.png

 

Hope this can help you solve the issue 

 

Best regards,

Richard | PageFly 

Please let me know if it works by giving it a Like or marking it as a solution!


➜ Optimize your Shopify store with PageFly Page Builder (Free plan available) 


All features are available from Free plan. Live Chat Support is available 24/7.

View solution in original post

Replies 3 (3)

Guleria
Shopify Partner
4083 801 1154

Hello @eslamibrahim ,

 

You need to edit the search template and remove the default code of it.
File may be main-search.liquid under section depending on the theme you are using.
After that you can add the static html of the 2 products or call them with the same code you used in the category/collection page.  

Thanks

- Custom themes, UI/UX design, ongoing maintenance & support.
- Drop an email   if you are looking for quick fix or any customization
- Email: guleriathakur43@gmail.com Skype: live:navrocks1
- Try GEMPAGES a great page builder

PageFly-Richard
Shopify Partner
4991 1118 1796

This is an accepted solution.

Hi @eslamibrahim 

 

This is Richard from PageFly - Shopify Page Builder App

 

Please add this code to your theme.liquid above the </head> to get this solved

Step 1: Online Stores > Themes > More Actions > Edit code

Step 2: click on theme.liquid and paste the code above the </head>

{% if template contains 'search' %}
<style>
@media (max-width: 767px) {
#shopify-section-template--16931611345130__main .main-products-grid__results > ul {
grid-template-columns: repeat(2,minmax(0,1fr));
}
}
</style>
{% endif %}

PageFlyRichard_0-1720571410915.png

 

Hope this can help you solve the issue 

 

Best regards,

Richard | PageFly 

Please let me know if it works by giving it a Like or marking it as a solution!


➜ Optimize your Shopify store with PageFly Page Builder (Free plan available) 


All features are available from Free plan. Live Chat Support is available 24/7.

eslamibrahim
Shopify Partner
49 0 6

thank you so much