Focusing on managing products, variants, and collections through the API.
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
Hello,
I'm optimizing a theme and would like to render the content for the appropriate device.
Does anyone know if we have an object in liquid that returns whether the device is mobile or desktop?
For example:
{% if isMobile %} {% comment %} Mobile content {% endcomment %} {% else %} {% comment %} Desktop content {% endcomment %} {% endif %}
Thanks!
I am interested in this as well, seems like this would be a no-brainer native feature.
This feature needs to be added. 👍