Reputation: 63
Ok, I am trying to develop drupal template and I need to tell you that I did not really understand how to use the If mobile.
{% if is_mobile() %}
{{ page.content }}
{% endif %}
I thought that this was working but I have errors.
i have also tried this
{% if is_mobile() %}
{% include '@header.html.twig' %}
{% endif %}
but is not working... so what I need to do?
Upvotes: 0
Views: 276
Reputation: 63
Ok, I found the problem.
The problem was that mobile_detect module was not installed properly for some reason.
Sorry to everybody
Upvotes: 0