Reputation: 1
I use the popads popunder in my site but i've one issues with it. That is happening on mobile devices, The pop is opening in a browser all the time and the user can't acess the other pages. So I think that it can be solved if I hidden the code on mobile devices, making it appear only in desktop. Can someone help me?
Thanks a lot, follow the code above:
PopAds.net Popunder Code
<script type="text/javascript">
var _pop = _pop || [];
_pop.push(['siteId', ###]);
_pop.push(['minBid', 0]);
_pop.push(['popundersPerIP', 0]);
_pop.push(['delayBetween', 0]);
_pop.push(['default', false]);
_pop.push(['defaultPerDay', 0]);
_pop.push(['topmostLayer', false]);
(function() {
var pa = document.createElement('script'); pa.type = 'text/javascript'; pa.async = true;
var s = document.getElementsByTagName('script')[0];
pa.src = '//c1.popads.net/pop.js';
pa.onerror = function() {
var sa = document.createElement('script'); sa.type = 'text/javascript'; sa.async = true;
sa.src = '//c2.popads.net/pop.js';
s.parentNode.insertBefore(sa, s);
};
s.parentNode.insertBefore(pa, s);
})();
</script>
Upvotes: 0
Views: 1735
Reputation: 11
Try this ! it worked for me! this will show ads in desktop only
<b:if cond='data:blog.isMobileRequest == "true"'>
(leave this empty)
<b:else/>
(put your popads code here)
</b:if>
Upvotes: 1