0

Just want uploaded images for entries to show for desktop AND mobile

{% set assets = entry.galleryImage %}

{% if assets | length %}

{% for asset in assets %}
    {% if asset.kind == 'video' %}
        <video class="vid" preload="none" controls="false" loop webkit-playsinline muted>
            <source src="{{ asset.url }}" poster="{{ asset.url }}" type="video/mp4">
        </video>
    {% else %}
        <img class="gallery_img_1"  src="{{ asset.url }}">
    {% endif %}
{% endfor %}
2

From Craft's POV, there's no difference between desktop and mobile. I'd check your CSS to see if you're changing how things are displayed depending on the @media query breakpoints.

1
  • i commented out the style sheet and still nothing :( – tallgirltaadaa Sep 11 '17 at 20:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.