Seeking assistance with code to hide the “No Image” placeholder image and recover that page space based on something like:
{%- if img_url contains “no-image” -%} style=“display: none;” {%- endif -%}
Shopify’s “no image” default URL is:
https://cdn.shopify.com/shopifycloud/shopify/assets/no-image-…
Theme is Radiance
(Update) OR:
{%- unless product.img_url contains “no-image” -%} do this:
{% if settings.main_image_display == ‘Lightbox’ %}
{% endif %}
{% if settings.main_image_display == ‘Lightbox’ %}
{% endif %}
CLICK IMAGE TO ZOOM IN
-
{% for image in product.images %}
{% unless forloop.first and settings.main_image_display == 'Lightbox' %}
-
<a{% if settings.main_image_display == ‘Lightbox’ %} rel=“fancybox”{% endif %} class=“gallery” href=“{{ image | product_img_url: ‘original’ }}” title=“{{ image.alt | escape }}”>
{% endunless %}
{% endfor %}
{% endunless %}
Thank you!