Changing the Ad/Image Banner in the Header

Posted by Brandon on November 17, 2008 under Theme Help | 2 Comments to Read

The banner image in the header is inside a div sized specifically for a 468 x 60 banner. To change it out or add ad code, open up header.php and locate this line (line 53 in the original file):

<img src=”<?php bloginfo(’template_directory’); ?>/images/468ad.jpg” />

Replace it with your ad code and it should work fine. Changing the size will require a bit of work in the stylesheet.css file.

  • Dan DelMain said,

    Great Theme. I am currently using for a website I am building – http://www.portlandpainter.net.

    My questions relates to header image.
    1) Under what folder or subfolder do I upload my image? Is this done through FTP or the Wordpress Admin Panel?
    2) When you refer to line 53, line 53 in the original HTML code or line 53 in the Edit Themes Admin Panel?

    Thanks for the help.

  • Brandon said,

    Dan, all images that you use in the theme files will be stored in the images folder of the theme directory, most likely portlandpainter.net/wp-content/themes/balanceofblue/images/. And the line numbers do not match up in the theme editor. You can open the file in Notepad for a more accurate view of the original code, unless you have a code editor that shows you the line numbers, such as the free Aptana Studio.

Add A Comment