Product images missing in Debut theme

Solved
lowcountry
New Member
11 0 0

Hello my product images are missing in the search results for Debut theme. My store URL is lowcountry-key.myshopify.com. Password: password

Please let me know if you can help.

Screen Shot 2021-01-17 at 8.08.55 PM.png

0 Likes
tim
Shopify Expert
2842 113 934

This is an accepted solution.

product-card-grid snippet  includes image-style snippet like so:

{% include 'image-style', image: preview_image, height: max_height, wrapper_id: wrapper_id, img_id: img_id %}

where max_height  is set in collection-template section like this:

{% case section.settings.grid %}
  {% when 2 %}
    {%- assign max_height = 530 -%}
  {% when 3 %}
    {%- assign max_height = 345 -%}
  {% when 4 %}
    {%- assign max_height = 250 -%}
  {% when 5 %}
    {%- assign max_height = 195 -%}
{% endcase %}

 

Since by default search template  uses list view and not a grid view, this max_height variable is not defined and your product images aren't rendered properly. 

So, try adding code like this at the top of your search template:

{%- assign max_height = 250 -%}
Want to hire me to tweak a theme? Mail me at tairli@yahoo.com!
My post solved your problem? Like it!
0 Likes
lowcountry
New Member
11 0 0

This worked! Thank you so much!

0 Likes