Quickly replace the header image in the default WordPress 2.7 Kubrick theme

David Nash General, wordpress 4 Comments

I was asked to do some quick mods to client’s WordPress blog. He wanted to replace the banner image. He’s using WordPress 2.7 and has the default Kubrick theme. This isn’t as easy as you would think as it’s generated by PHP so that the colours can be dynamically set. Here’s what I did: Download wp-content/themes/default/images/kubrickheader.jpg Modify it, save and upload as wp-content/themes/default/images/kubrickheader_NEW.jpg Edit wp-content/themes/default/header.php. On line 42 you should see <div id=”headerimg”> Modify this so it reads: <div id=”headerimg” style=”background: url(<?php bloginfo(‘stylesheet_directory’); ?>/images/kubrickheader_NEW.jpg) no-repeat -1px 0″> Upload header.php and it should now be using your new header. I used …