Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #1356
    pele
    Participant

    Hi,

    I was wondering if its possible to enable/show adsense on the catchbox theme, so that ads are viewable from a mobile device ?

    Thanks in advanced

    #1359
    pele
    Participant

    actually i now see ads enabled but there is a prob when it comes to using adsense ads

    Mobile adsense is fine and displays fine from a mobile device.
    but regular adsense does not display well from a mobile device

    #1365
    Sakin
    Keymaster

    @pele: can you add in the regular adsense and send me your site URL. Then I will check it on mobile devices and see the issue. If you can then you can send me the mobile device screenshot.

    #1369
    pele
    Participant

    sure give me a min

    #1371
    pele
    Participant

    here is the mobile screenshot – you will see the big yellow box (which is a adsense leaderboard not active yet – but its a example)

    This extends right out and the mobile margins do not re-size, in which i am forced to use mobile banners to have everything lined up correctly

    http://i.minus.com/jbip8KRA2YHQPm_e.jpg

    Website : blackandroidtheme.com

    #1373
    Sakin
    Keymaster

    @pele: In your screenshot what is the issue. Can you explain as I am not fully aware of mobile ads. So, I am trying to give you css so that you can make the regular ads responsive.

    #1374
    pele
    Participant

    Ok the first ad you see is a mobile adsense banner

    the second ad you see is a regular adsense banner which is 320 x 50 to fit when viewing the page site from a mobile device.

    the next ad u see is what a 728 x 90 leaderboard adsense banner which does not fit the screen correctly when viewing site from a mobile device

    #1375
    pele
    Participant

    if u look now from a mobile device at blackandroidtheme.com you will see the leaderboard adsense banner active. You can see for yourself how it looks

    #1376
    Sakin
    Keymaster

    Hi pele: There is one css trick you can use it.
    For Regular Ads, wrap the ads code with regular wrapper div. For example:
    <div class="regular-ads">Add in your regular ads script</div>
    For Mobile ads, wrap the ads code with the mobile wrapper div. For example:
    <div class="mobile-ads">Add in your mobile ads script</div>

    Then you can use the “Custom CSS” box in your theme option to show and give the div in various devices:
    For example:

    /* For Regular */
    .mobile-ads { display: none; }
    /* For Mobile view */
    @media screen and (max-width: 767px) {
    .mobile-ads { display: block; }
    .regular-ads { display: none; }
    }

    #1380
    pele
    Participant

    Ok I will give this a shot in about an hour. Hopefully you will still be available to assist should I run into any difficulties.

    ThanksThanks

    #1382
    pele
    Participant

    ah awesome – i see what your method does thats excellent 🙂

    many thanks for the excellent quick support and awesome theme ofc 🙂

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘How to enable ads or adsense ?’ is closed to new replies.