WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to center my google ad sense in WordPress (4 posts)

  1. journalismhub
    Member
    Posted 2 years ago #

    Dear all,

    I am trying to center my google ad on my blog but it never worked (I am referring to the header). I tried several things following previous instructions posted but still nothing.

    The blog address is: http://www.journalismhub.com

    And FYI am not using any plugin - just having the ads using text on side-bar; in particular using it with banner sidebar for the header ad.

    Thank you.

  2. Josh (WP Edit)
    Volunteer Moderator
    Posted 2 years ago #

    Add this to your custom css:

    #banner-widget-area {
        float: none;
        margin-left: 100px;
    }
  3. journalismhub
    Member
    Posted 2 years ago #

    Hey Josh - thanks for your reply.
    Just for clarification: I added it to style.css AND it worked.

    Thanks Josh.

  4. Josh (WP Edit)
    Volunteer Moderator
    Posted 2 years ago #

    No worries. Remember, if you are not using a child theme this modification will be lost when you upgrade your theme... and you'll have to re-insert it again.

Topic Closed

This topic has been closed to new replies.

About this Topic