Chinna444 Posted April 2, 2016 Share Posted April 2, 2016 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. Link to comment Share on other sites More sharing options...
Marius Posted April 2, 2016 Share Posted April 2, 2016 Link to comment Share on other sites More sharing options...
Chinna444 Posted April 2, 2016 Author Share Posted April 2, 2016 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. Link to comment Share on other sites More sharing options...
Nathan Explosion Posted April 2, 2016 Share Posted April 2, 2016 The section titled "Using responsive CSS classes to show ads only on mobile or desktop" gives you the help you need. Link to comment Share on other sites More sharing options...
Chinna444 Posted April 3, 2016 Author Share Posted April 3, 2016 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> Link to comment Share on other sites More sharing options...
MADMAN32395 Posted April 3, 2016 Share Posted April 3, 2016 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> Link to comment Share on other sites More sharing options...
MADMAN32395 Posted April 4, 2016 Share Posted April 4, 2016 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 Link to comment Share on other sites More sharing options...
Nathan Explosion Posted April 4, 2016 Share Posted April 4, 2016 Yes, ditch the html you posted as (to be honest) it's a mess. Follow those instructions from @MADMAN32395 Link to comment Share on other sites More sharing options...
Chinna444 Posted September 29, 2016 Author Share Posted September 29, 2016 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? Link to comment Share on other sites More sharing options...
MADMAN32395 Posted September 29, 2016 Share Posted September 29, 2016 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 Link to comment Share on other sites More sharing options...
Chinna444 Posted December 1, 2016 Author Share Posted December 1, 2016 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? Link to comment Share on other sites More sharing options...
MADMAN32395 Posted December 2, 2016 Share Posted December 2, 2016 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. Link to comment Share on other sites More sharing options...
Redmak Posted December 19, 2016 Share Posted December 19, 2016 If you are using GPT to display ads, they support adding the correct ad for responsive sites. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.