Images not shown for search results

Tourist
5 0 1

Hello community,

 

We have stumbled upon some problem with the Debut Theme at our website www.dvnecollection.se. Whenever we search for something on our website using the search function, the images in the search results are not shown. I have tried to scan the code for myself but could not find where to resolve the issue. This is what it looks like:

 

No_images_shown_when searching.png

 

If you scan the HTML-code on the website it looks like this:

 

no_gif_shown.jpg

 

It seems like the img src are pointing to a default "no-image" or something. Has anyone else stumbled upon this problem?

 

Best regards,
Kenny

0 Likes
Shopify Expert
2465 414 519

Hi @Master_DVNE 

 As i can see in your code i think you have changed default code of search page so it cant load product image.

Try to add below code and check it

1. Open Template->search.liquid file and find bellow line:

<div class="reveal">

Now change <img> tag next to this line with below:

<img class="list-view-item__image" src="{{ item.image.src | img_url: '600x600' }}" alt="{{ item.image.alt | escape }}">
Want to modify or custom changes on store hire me.
If helpful then please Like and Accept Solution.
Email: jasoliyabrijesh123@gmail.com
Skype: jasoliya.brijesh
Want to get Free review and advice for sale on store ?? just text me here
0 Likes
Tourist
5 0 1

Hello @Jasoliya!

 

Thank you for your reply. I looked up the Template->search.liquid file and this is what it looks like: 

no_reveal_class.png

As you can see from above this line of code:

<div class="reveal">

 is missing. Regarding the <img> this one already exists. Do you have any other advice on what to do? I have tried to wrap the <img> tag with the <div class="reveal></div> as well without result.

 

Thank you and best regards,
Kenny

0 Likes
Shopify Expert
2465 414 519

check in snippet->product-card-list.liquid file 

Want to modify or custom changes on store hire me.
If helpful then please Like and Accept Solution.
Email: jasoliyabrijesh123@gmail.com
Skype: jasoliya.brijesh
Want to get Free review and advice for sale on store ?? just text me here
0 Likes
Tourist
5 0 1

Hello again @Jasoliya and thank you for your fast reply. 

 

The code section looks like the following: before_product-list.png

 

I followed your advice and replaced the marked line of code to the one you posted, however there was no results for that either. I even did a hard refresh to remove any stored cache but still no results. This problem is a bit weird, do you have any other suggestions? 

 

Best regards,

Kenny

0 Likes
Shopify Expert
2465 414 519

Add me as staff account (jasoliyabrijesh123@gmail.com) i will check it 

Want to modify or custom changes on store hire me.
If helpful then please Like and Accept Solution.
Email: jasoliyabrijesh123@gmail.com
Skype: jasoliya.brijesh
Want to get Free review and advice for sale on store ?? just text me here
0 Likes