Support » Themes and Templates » Putting an Ad in the Header

Viewing 9 replies - 1 through 9 (of 9 total)
  • You can either drop the <img> tag in your header.php file or what I would recommend is placing it as a widget up there. If your #header section isn’t currently “widgetized” I’d suggest doing that.

    registering sidebars documentation

    Thanks for the response Mark. I should’ve mentioned I’m using AdSense. What I’m trying to figure out is where to put the div.
    <div id=”AdAboveHeader”><adsense code></div>

    Right now I have it in between the Site logo Div and the Site description Div. That didn’t work though, it went to the top left of the header. I’m not quite sure how to widgetize it, but there is a Div after site description called Social Widget. I’m not sure what the Social Widget is..

    I’m using iTheme2 from Themeify by the way…

    Got it to go to the right using: <span style=”float:right”>adsense stuff</span> and placing it after the logo Div in the header.php. The problem is, it still wants to stay at the top of the screen.

    How do I push it down? Thanks.

    You might be better off asking this question on the theme’s dedicated forum:

    As I said on my other post you wrote this on…their forum costs money and this problem is not theme specific, mentioning the theme simply makes it easier in-case someone is familiar with the theme.

    Is there such a thing a float: down or float: center?

    Nope, can’t be done with a float. So what’s the alternative?

    Try putting

    margin-top: 50px;

    Or whatever after your

    float: right;

    you can use plugin “Advertisement Management” to set ads on best places…

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Putting an Ad in the Header’ is closed to new replies.