WordPress.org

Ready to get started?Download WordPress

Forums

Adsense only half showing? (7 posts)

  1. zacs2k
    Member
    Posted 3 years ago #

    I added an adsense 160x600 sidebar ad to my sidebar on my blog, but only part of the ad is showing. Any ideas to what could be causing this? Im kinda new to wordpress. Here is my blog 365fact.com

  2. prionkor
    Member
    Posted 2 years ago #

    I am having same problem with my site. Only half of the ad is showing and yellow background on other half. You can see the problem here. Check on header and sidebar.

  3. Marco Milesi
    Member
    Posted 2 years ago #

    zacs2k: i added an adsense 160x600 sidebar ad to my sidebar on my blog, but only part of the ad is showing. Any ideas to what could be causing this? Im kinda new to wordpress. Here is my blog 365fact.com

    I think there aren't problems there. Everything is showing correctly.

    prionkor: i am having same problem with my site. Only half of the ad is showing and yellow background on other half. You can see the problem here. Check on header and sidebar.

    You have to completely remove these lines in style.css:

    ins {
    background: #FF9;
    color: black;
    text-decoration: none;
    }

    and

    img, iframe {
    max-width: 100%;
    width: auto;
    height: auto;
    }

    This should fix everything.

  4. Krishna K
    Member
    Posted 2 years ago #

    @prionkor,

    Are you using any plugin to place AdSense ads? Or, are you placing the ad code in a text widget?

  5. prionkor
    Member
    Posted 2 years ago #

    @Milmor:

    Thanks and Fixed! The problem was setting width and height of iframe to auto. So i had to change this css

    img, iframe {
    max-width: 100%;
    width: auto;
    height: auto;
    }

    to this:

    img{
    max-width: 100%;
    height: auto;
    }
    
    iframe{
    max-width: 100%;
    }

    the <ins> tag is inside the iframe and pushed by google and it don't need to be changed.

  6. Marco Milesi
    Member
    Posted 2 years ago #

    Are you sure it come from Google?
    This is your Css and the line:
    ins { background: #ff9; color: #000; text-decoration: none; } come from it! Also if the tag is pushed from Google, your website overrides its style...

  7. prionkor
    Member
    Posted 2 years ago #

    @Milmor: yes, there is some code on css that styles it (which doesn't cause the problem though) but the <ins> tag injects by google.

Topic Closed

This topic has been closed to new replies.

About this Topic