Viewing 3 replies - 1 through 3 (of 3 total)
  • There is probably more than one good way to approach this. But, depending upon exactly what code you plan to add, you might consider inserting it right after this line:

    </div><!-- .logo -->

    in your theme’s header.php file.

    Also, in order to help your edits survive any future updates to your theme, you might consider making a child theme and placing your code into a copy of header.php.

    Hope this helps!

    Thread Starter albnaldo

    (@albnaldo)

    I am going to put there an Adsense code. Apart from putting the code, should I align it to the right side?

    David G. Johnson

    (@haveanepiphany)

    Hi albnaldo,

    You sure could — it’s kind-of a design taste question. If you wanted to accomplish that, then you might create a <div> specifically for adsense and float it to the right using CSS.

    This would allow you to control margins, padding and other characteristics of your div tag via CSS as well.

    Hope this helps!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to Put Ad on Header?’ is closed to new replies.