How do I get my adsense banners centered?

6 replies
  • SEO
  • |
I used a plugins to get them on the site after screwing up doing the code 1st time.

They are there now but not centered. I am scared of messing with the code but guess I'll do it if it's the best way.

As I used plugins to put them up how would I now center them?

I have one above my post titles and one to the right in the sidebar above the categories etc.
#adsense #banners #centered
  • Profile picture of the author bhuff85
    Originally Posted by steadypay View Post

    I used a plugins to get them on the site after screwing up doing the code 1st time.

    They are there now but not centered. I am scared of messing with the code but guess I'll do it if it's the best way.

    As I used plugins to put them up how would I now center them?

    I have one above my post titles and one to the right in the sidebar above the categories etc.
    Just use the HTML tags <center></center> around your code. One at the beginning and one at the end and that should take care of it.
    Signature
    Want to speed up your writing and save time?
    This book will show you how:
    --> Write Fast: 21 Powerful Ways to Cut Your Writing Time in Half! <--
    {{ DiscussionBoard.errors[4269809].message }}
  • Profile picture of the author Shakespeared
    And if that doesn't do it, I typically use

    <p align="center">
    (adsense code)
    </p>

    There's a few less keystrokes with bhuff's though.
    Signature
    Into fiction? Check out our great list of books to read for fans of the written word.
    {{ DiscussionBoard.errors[4270555].message }}
  • Profile picture of the author vvhins1
    Banned
    [DELETED]
    {{ DiscussionBoard.errors[4272576].message }}
    • Profile picture of the author steadypay
      I went to try these suggestions but I couldn't find the code...I know what the adsense code looks like but couldn't find it in the header .php or sidebar.php.

      Could this be because I used plugins to get them there?
      {{ DiscussionBoard.errors[4273032].message }}
  • Profile picture of the author coolspot
    surely u added the adsense code into the plugin / module right? well just before and after the jscript, use the center tags as mentioned above
    {{ DiscussionBoard.errors[4273328].message }}
    • Profile picture of the author steadypay
      On one, which I'll try, but the other I just put my pub-id in.
      {{ DiscussionBoard.errors[4273420].message }}
  • <center>

    google adsense code

    </center>
    {{ DiscussionBoard.errors[4275971].message }}

Trending Topics