XF 2.0 How to make an interestial ad appear on mobile only?

CjTheFish

Member
Good morning,

I have an ad-code from my network for an interestial ad. It's beautiful and I think it has a lot of potential to capture clicks however it's not responsive and when I paste the code in it appears for both mobile and non mobile visitors. The non mobile version is ugly and obtrusive for desktop viewers.

How can I modify this so that it will only show to my mobile visitors?

My site runs off the same domain, I do not have a m.domain.com set up. Is it still possible?

Code:
<script type="text/javascript">
    var ad_idzone = "3010778",
        ad_frequency_period = 60,
        ad_frequency_count = 1,
        ad_trigger_type = 2,
    ad_trigger_method = 3,
        ad_width = "300",
        ad_height = "250";
</script>
<script src="publisherurlhere"></script>

here's the code if it helps.
 
Last edited:
Top Bottom