This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

stephenlch11122433
stephenlch11122433

I searched that there is a code for Twig that is something like {% if is_mobile() %} that can check if the viewport size is at mobile size. But it does not seem to work on October with error Unknown "is_mobile" function.

Is there a way to track it? I want exactly something like that. Thanks a lot!

pratyushpundir6424
pratyushpundir6424

Why not create your page with all the things you need for mobile and desktop views but then use media queries to hide/show what you need. You could also use bootstrap's visibility classes as mentioned here http://getbootstrap.com/css/#responsive-utilities-classes

stephenlch11122433
stephenlch11122433

Understoof. Thanks a lot for your response!

1-3 of 3

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.