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

XF 1.5 Will conditions be able to hide content to non-mobile users?

Discussion in 'XenForo Questions and Support' started by Chris Radford, Oct 11, 2016.

  1. Chris Radford

    Chris Radford Member

    The ad network we run has given us tags for both desktop, and mobile users.
    Naturally, we only want the desktop ads to display on desktop and the same for mobile, vice versa.

    Can I do this with conditions?

    The two ad code variations provided by the ad network are completely different.

    Many thanks..
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    You can use media queries to target the viewport width, but that may be against the ToS of the ad provider.

    Otherwise you would need to use a custom JavaScript solution.
     
    Chris Radford likes this.
  3. Chris Radford

    Chris Radford Member

    The ad company recommend media queries but I am not familiar with them- could you shed any light?
    Thanks for the prompt reply!
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    Chris Radford likes this.

Share This Page