WordPress.org

Ready to get started?Download WordPress

Forums

Floating Adsense Bar
[resolved] Adsense covered Mobile site (9 posts)

  1. adewalelagos
    Member
    Posted 1 year ago #

    Thanks for this great plugin.

    When i activated it it covers my site if it is viewed from a mobile phone.

    is there a way to remove this for visitors with mobile device.

    Thanks.

    http://wordpress.org/extend/plugins/floating-adsense-bar/

  2. Santosh Padire
    Member
    Plugin Author

    Posted 1 year ago #

    Add this code in FAB_share_init(),FAB_Float_Load() functions at begining

    Code:

    if (strpos( $_SERVER['HTTP_USER_AGENT'] , 'iPhone') )
    return;
    if (strpos( $_SERVER['HTTP_USER_AGENT'] , 'iPad') )
    return;
    if (strpos( $_SERVER['HTTP_USER_AGENT'] , 'iPod') )
    return;
    if (strpos( $_SERVER['HTTP_USER_AGENT'] , 'Nokia') )
    return;
    if (strpos( $_SERVER['HTTP_USER_AGENT'] , 'Opera Mini') )
    return;
    if (strpos( $_SERVER['HTTP_USER_AGENT'] , 'Opera Mobi') )
    return;
    if (strpos( $_SERVER['HTTP_USER_AGENT'] , 'SonyEricsson') )
    return;
    if (strpos( $_SERVER['HTTP_USER_AGENT'] , 'BlackBerry') )
    return;
    if (strpos( $_SERVER['HTTP_USER_AGENT'] , 'Mobile Safari') )
    return;
    include the mobiles and browsers for which you don't want to display adsense bar.

  3. Santosh Padire
    Member
    Plugin Author

    Posted 1 year ago #

    Resolved

  4. adewalelagos
    Member
    Posted 1 year ago #

    Thanks for the response, i used the code you sent me and it's still not working can it be because my installation is buddypress,i used the buddymobile plugins or because my site is responsive. see my site http://www.naijaurban.com

  5. sixguinness
    Member
    Posted 1 year ago #

    Santosh Padire -

    Where does the code go?

  6. AK1977
    Member
    Posted 1 year ago #

    The code provide above doe snot work.
    @six: try this
    plugins>floating-adsense-bar>fab_style.css

    @media only screen and (max-width: 479px){
        #ad_divLeft { width: 10%; }
    	#ad_divRight { width: 10%; }
    }

    You can test different max-width for different screens and also div width.

    If you wanna hide for specific mobile then use the following code

    @media only screen and (max-width: 479px){
        #ad_divLeft { z-index: -99999 }
    	#ad_divRight { z-index: -99999 }
    }
  7. sixguinness
    Member
    Posted 1 year ago #

    I was notified by Google a few ago that I had 3 days to remove the Adsense Floating Bar because it is against their TOS. What's that all about?

  8. esmi
    Forum Moderator
    Posted 1 year ago #

  9. sixguinness
    Member
    Posted 1 year ago #

    I attempted to but after the third paragraph my eyes began to glaze over.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.