The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Media Queries + website = mobile friendly ads ?!

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #194365

    Hi guys, i have a tough one.
    So i am using WordPress with mobile friendly template ( ) using media queries, all customized and everything works great but i have a problem that i haven’t been able to solve.

    We all know that ads aren’t that simple anymore as img src and they have these script things that doesn’t care about our mobile friendly template at all. Let’s say i had to settle with small banner types only, because otherwise they will totally ruin my mobile experience.

    So i wonder, isn’t there a way like to display a certain code for ads over 720px resolution , and different code for bellow that using media queries? and of course without messing the template i already have?

    I really feel like i am not monetizing efficiently the full size website. I don’t know if this is possible but i hope you guys find a solution for this .


    Most of the time the advertiser’s script will detect how much room they have to work with.

    If that doesn’t work, just show things at certain breakpoints.

    Here’s how Foundation does it:

    So, eg. if you have a small breakpoint, hide the large ad there and show the small one.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.