Jump to content

Disable advertisements on mobile

Featured Replies

Posted

We recently upgraded to IPS 4.   Displaying ads below the header and i don't want to show these ads in mobile. Can anyone please let me know how to do that.

 

 

 

  • Author

So.. i added a plain html table code which displays 160x60 custom  banners ... still i am unable to make this work only on desktop. If you dont mind can you please tell me how to disable from mobile version. Thanks.

The section titled "Using responsive CSS classes to show ads only on mobile or desktop" gives you the help you need.

 

  • Author

I tried it but for some reason it is not working...may be code which i am displaying may be wrong.  Can you please look at below ad code and let me know if i am doing something wrong...I don't want to display ads on mobile...


 

<!DOCTYPE html>
<html>
<table>
<body>
<div class='ipsResponsive_showDesktop ipsResponsive_showTablet ipsResponsive_block'>

<tr>
<td><a href="test-url" target="_blank"> <img src="image-path"> </a>
</td>
<td>
<a href="test-url" target="_blank"> <img src="image-path"> </a>
</td>

</tr>
</div>
</body>
</table>
</html>

 

here ya go

<div class="ipsResponsive_showPhone ipsResponsive_block">
    <!-- Mobile Advertisement -->
</div>

<div class="ipsResponsive_showTablet ipsResponsive_block">
    <!-- Tablet Advertisement -->
</div>

<div class="ipsResponsive_showDesktop ipsResponsive_block">
  <!-- Desktop Advertisement -->
</div>

 

3 hours ago, MADMAN32395 said:

here ya go


<div class="ipsResponsive_showPhone ipsResponsive_block">
    <!-- Mobile Advertisement -->
</div>

<div class="ipsResponsive_showTablet ipsResponsive_block">
    <!-- Tablet Advertisement -->
</div>

<div class="ipsResponsive_showDesktop ipsResponsive_block">
  <!-- Desktop Advertisement -->
</div>

 

I was on mobile so it was a little hard to type without a keyboard lol... basically if you only want to show desktop, just put your ad code under where it says desktop. you could leave all three div classes in and it wont hurt anything.

This is how I use it on mine. *attached

chrome_2016-04-03_21-37-37.png

Yes, ditch the html you posted as (to be honest) it's a mess. Follow those instructions from @MADMAN32395

  • 5 months later...
  • Author

I followed the instructions and i am able to disable ads on mobile version.

Recently a new advertisement format was enable on my site called (ON SCROLL) . This advert will stay at bottom of the page which is visible even when scrolling. I am unable to disable that ad on mobile version. Any inputs will be helpful?

45 minutes ago, subbu4444 said:

I followed the instructions and i am able to disable ads on mobile version.

Recently a new advertisement format was enable on my site called (ON SCROLL) . This advert will stay at bottom of the page which is visible even when scrolling. I am unable to disable that ad on mobile version. Any inputs will be helpful?

something isnt in the right spot then or you need a code that doesnt have scrolling put in for show_phone

  • 2 months later...
  • Author
On 9/28/2016 at 10:09 PM, MADMAN32395 said:

something isnt in the right spot then or you need a code that doesnt have scrolling put in for show_phone

any ideas on how to implement it?

7 hours ago, subbu4444 said:

any ideas on how to implement it?

how are you trying to utilize it? if its an ad, just drop that code into the ad box as imaged, and just put your ad code into the appropriate area as commented in the code provided.

  • 3 weeks later...

If you are using GPT to display ads, they support adding the correct ad for responsive sites.

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.