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

Chris Radford

Active 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..
 

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

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

Otherwise you would need to use a custom JavaScript solution.
The ad company recommend media queries but I am not familiar with them- could you shed any light?
Thanks for the prompt reply!
 
Top