1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

A guide on how to show or hide a template or even content to a mobile device or small browser widths

  1. ForumHeroes
    Compatible XF Versions:
    • 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...
    You do not have permission to view the full content of this resource.