[TUT]Show or hide a template or content based on browser viewport width XF1

[TUT]Show or hide a template or content based on browser viewport width XF1

Sauron

Co-Founder
Staff
Leadership
MC Models
SpigotVIP
Member
Sauron submitted a new resource:

[TUT]Show or hide a template or content based on browser viewport width - Show or hide a template or content based on browser viewport width

Compatible XF Versions [1.x]:
  • 1.0
  • 1.1
  • 1.2
  • 1.3
  • 1.4
  • 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 class="XFmobileShow">
<xen:include template=" Template To Show Only On Mobile...

Read more about this resource...
 
Top