WordPress.org

Ready to get started?Download WordPress

Forums

How to center Google AdSense ads in my widget sidebar? (5 posts)

  1. carlosmiller
    Member
    Posted 6 years ago #

    If you look at the right sidebar on my blog, http://www.carlosmiller.com and scroll a little ways down, you will see that the Google AdSense ads are a little too far to the left, unlike the rest of the content I have in the sidebar.

    How can I center these ads to make them uniform with the rest of the content in the sidebar?

  2. Kaspars
    Member
    Posted 6 years ago #

    Carlos, the problem is caused by the location of your adsense code in the theme's HTML code. They are all placed outside the sidebar wrapper (#sidebar). Thats why it is aligned right next to the main column.

    What plugin do you use for placing the ads? Or you placed them yourself inside the theme file? You should either put the adsense javascript inside the sidebar.php file right before the closing div tag of #sidebar wrapper or use a plugin which provides widgets -- AdSense Manager (latest version here), for example.

  3. carlosmiller
    Member
    Posted 6 years ago #

    kasparsd,

    That totally made sense and it corrected the problem immediately.

    Can you tell me how I can place a Google Ad at the bottom of the blog?

    I do have AdSense Manager, but I'm not sure if I got it to work correctly. I have to go back and read through the instructions again.

    Thanks for your help.

  4. carlosmiller
    Member
    Posted 6 years ago #

    Actually what I have is AdSense Deluxe. Is AdSense Manager better?

  5. Kaspars
    Member
    Posted 6 years ago #

    Carlos, I am using AdSense Manager my self and it does precisely all I want and need.

    Now, regarding the ad placement at the bottom - do you mean at the bottom of the articles (on homepage / individual article page) or at the bottom of page (on every page)?

    Let me know this, and I'll be able to help you out better.

Topic Closed

This topic has been closed to new replies.

About this Topic