Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted April 2, 20168 yr 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.
April 2, 20168 yr 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.
April 2, 20168 yr The section titled "Using responsive CSS classes to show ads only on mobile or desktop" gives you the help you need.
April 3, 20168 yr 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>
April 3, 20168 yr 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>
April 4, 20168 yr 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
April 4, 20168 yr Yes, ditch the html you posted as (to be honest) it's a mess. Follow those instructions from @MADMAN32395
September 29, 20168 yr 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?
September 29, 20168 yr 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
December 1, 20168 yr 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?
December 2, 20168 yr 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.
December 19, 20168 yr 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.