Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
  • #2187


    I would like to add a banner advert at the top right of my website (, below the search facility and to the right of the site logo. Can you tell me what code I should add and where abouts in the header.php file.




    I’m not entirely sure what code you should add, you’ll want to look around for banner plugins for WP most likely.

    To add to that spot you’ll want to look around the line that has this:

    <h2 class="logo ie6fix <?php echo $logoclass; ?>">/"><?php echo $logo; ?></h2>


    Thanks Noah,

    I have inserted the code into the header.php on the next line to the one you suggested. However, could you take a look at and you’ll see that it has pushed the navigation bars and content down the page. Are you able to tell me how to stop this from happening and at the same time move the banner down below the search bar?

    This is the code I have in there at the moment:

    <h2 class="logo ie6fix <?php echo $logoclass; ?>"><a>/"><?php echo $logo; ?></a></h2>
    <div align="right"><script src='' language='javascript' type='text/javascript'></script></div>

    Thanks for your help.




    please change the code you posted above with following:

    <h2 class="logo ie6fix <?php echo $logoclass; ?>"><a>/"><?php echo $logo; ?></a></h2>
    <div align="right" style="margin-top: 60px; float: right;"><script src='' language='javascript' type='text/javascript'></script></div>


    Hey Dude,

    Thanks buddy. That has helped but it has pushed the site logo down so it now covers the first navigation menu.

    See here:

    Any suggestions?

    Thanks again



    Ahhh its ok. I sorted it. Thanks :-)


    so what wp banner plugin did you end up using ?

    There are so many and they each seem to do something differently

    I’m trying to add a banner in the same spot at



    I got it sorted in case someone checks this. Resolved! I should give myself more credit than I do when it comes to this stuff.


    Glad that you found a solution :)


    Hey, so what banner plugin works, please share.


    Yes, please share. I also need one. Txs

Viewing 11 posts - 1 through 11 (of 11 total)

The topic ‘Adding a Banner to the header file’ is closed to new replies.