Show or  hide a  template or content based on browser viewport width

Unmaintained Show or hide a template or content based on browser viewport width

Compatible XF 1.x versions
  1. 1.0
  2. 1.1
  3. 1.2
  4. 1.3
  5. 1.4
  6. 1.5
Didn't see this listed as a guide already, so wanted to share a guide on how to show or hide a template or even content to a mobile device.

First to display a template for mobile only, open the template you want to include the content in and place this code where you want to display the template you want to call to.

Code:
<div...
You do not have permission to view the full content of this resource. Log in or register now.
Author
ForumHeroes
Views
1,296
First release
Last update

Ratings

0.00 star(s) 0 ratings
Top Bottom