Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Chinna444 Posted April 2, 2016 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.
Chinna444 Posted April 2, 2016 Author 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.
Nathan Explosion Posted April 2, 2016 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.
Chinna444 Posted April 3, 2016 Author 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>
MADMAN32395 Posted April 3, 2016 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>
MADMAN32395 Posted April 4, 2016 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
Nathan Explosion Posted April 4, 2016 Posted April 4, 2016 Yes, ditch the html you posted as (to be honest) it's a mess. Follow those instructions from @MADMAN32395
Chinna444 Posted September 29, 2016 Author 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?
MADMAN32395 Posted September 29, 2016 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
Chinna444 Posted December 1, 2016 Author 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?
MADMAN32395 Posted December 2, 2016 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.
Redmak Posted December 19, 2016 Posted December 19, 2016 If you are using GPT to display ads, they support adding the correct ad for responsive sites.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.