Support » Fixing WordPress » How to add a banner to the header, under the nav bar

  • Hi there,

    I have a banner I want to add to the header of my site at I thought it would be as easy as pasting the <img> code into the header.php file, but I’ve pasted it everywhere I can think of with no luck.

    Any suggestions?


Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi. How do you call the image? Something like this should work:

    <a href="YOUR LINK" title=""><img src="<?php bloginfo('template_url'); ?>/YOUR IMAGES THEME FOLDER/YOUR IMAGE" alt="" width="" height="" /></a>

    Thanks for the reply, chavo.

    I call the image with:

    <a href=""><img src=""></a>

    I just can’t figure out where to paste into the header.php file.


    It depends based on your layout design. But all elements must be inside the html structure. Maybe below <div id=”header”>

    ps: sorry for my bad english.

    Your English is great! Thanks for your help.

    I pasted it right before the </div><!-- #header --> and it didn’t show up at all.

    Here’s the code from my header.php file. Let me know if you have any suggestions on where to put it. I’d like it to show up under the navigation, before the main content.:

    [code moderated as per forum rules – please use the pastebin]

    I’m curious about the same thing actually, so help from anyone on this subject would be spectacular.

    I added below nav banner at my site

    I added the code
    <center><a href="TARGET-SITE" target="_blank"><img src="IMAGE-LOCATION" alt="Bedceived" border="0" /></a></center>

    Seems to have worked OK. I added the code just below <div id=”header”> in header.php

    Hope this helps

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to add a banner to the header, under the nav bar’ is closed to new replies.