d
Topic
cotland Member
Posts:
2
3 months ago
g
1
upvotes

Related Products theme debut little problem....

Hello all,

I have a problem with Related Products on "Debut Theme". It's work fine on mobile responsive but in desktop, the Related Products no show any images.... I have the text but no image... How to view image ?

I have seen that the CSS on desktop ->

"#ProductCardImageWrapper-related-products-9848013577 
    max-width: px; max-height: 0.0px;"

Thanks for help !

 

i
Replies
Posts:
62
3 months ago

Share here your store URL so other members can see your problem.

Thanks,

I'm an expert Shopify developer From psdcenter.com. we love to help/support.Mail me at "jay.gandhi@rapidops.com" if you needed more help/support hire us directly at https://experts.shopify.com/psdcenter-llc
Posts:
1
3 months ago

I'm having the exact same problem:

page url

cotland Member
Posts:
2
3 months ago
g
1
upvotes

Hello,

I found the problem for me. In custom HTML / CSS, search -> snippets / image-style.liquid, you found the line :

{% if small_style %}@media screen and (min-width: 750px) { {% endif %}
    #{{ img_id }} {
      max-width: {{ maximum_width }}px;
      max-height: {{ maximum_height }}px;
    }
    #{{ wrapper_id }} {
      max-width: {{ maximum_width }}px;
      max-height: {{ maximum_height }}px;
    }

Delete ->  max-height: {{ maximum_height }}px; on the two line.

After that, you have :

{% if small_style %}@media screen and (min-width: 750px) { {% endif %}
    #{{ img_id }} {
      max-width: {{ maximum_width }}px;
    }
    #{{ wrapper_id }} {
      max-width: {{ maximum_width }}px;
    }

It's work fine for me and no bugs on other section of the site.

Sorry for bad English, i'm French ;)

Posts:
1
3 months ago

Thank you, Cotland! This is fantastic, it works perfectly on my website now :)

Posts:
6
2 months ago

Thank you so much for this - its been driving me crazy!

aldz Member
Posts:
3
2 months ago

Fantastic! It works on my website too. Thanks Cotland

Posts:
1
27 days ago

Awesome! Merci Cotland :)