Okay
  Public Ticket #314844
Disabled Ads Still Displaying
Closed

Comments

  • Lee Huy started the conversation

    Hey there!

    I disabled ads for mobile, but they're still showing up. This breaks the mobile view. Ad is 720 x 90, adsense.

  •  93
    djwd replied

    HI there,

    this might be a bug. I'll check up on that, in the meantime please paste this code into the Custom CSS textarea (Advanced Tab)

    @media and (max-width: 767px;) { #mgm-top-ad, #mgm-middle-ad, #mgm-bottom-ad  {display:none!important} }
    Thanks for your feedback.
    Regards
    djwd

    Regards
    djwd

  • James replied

    I have the same problem and the CSS3 media query isn't working for me. Do you have an update on this issue?

  •  93
    djwd replied

    Hi there,

    Please check the code carefully as it really should work. Btw the fix will be part of the next upcoming update.

    Regards
    djwd

    Regards
    djwd

  • James replied

    Thanks. I cut-and-paste the code above, checked it twice after it failed, and even fiddled with the media type ("screen and" etc.). No luck. Inserting adsense code for the 728 x 90 banner ad block continues to break the mobile view. The other ad sizes seem to be fine. I have since removed the adsense code from my site and replaced it with a static image, until a fix comes along.

  • Lee Huy replied

    Hey James,

    FWIW, the code worked for me. Strange that it doesn't work for you.

    In the mean time, there's a plugin called Google AdSense by Google. It's a pretty neat plugin that lets you drop an ad where available and also automatically dispenses responsive mobile ads (really just dispenses a 300x250 instead of scaled 728x90) when enabled.