Last Updated 23.02.06
Black-Letterhead is the name of the theme that I’m using as the layout for this site. It took me quite some time to figure out how to add the image for the header, and when searching for information I couldn’t find an “easy” answer; that’s why I decided to show here the code that I changed in case it may be of help to others. (disclaimer: I’m anything but an expert in this field, so I don’t know if it will work for you -but it has worked for me).
In header.php , this is how the body looks like:
<div align="center"><a href="https://envelooponline.com/nan/">
<img src="https://envelooponline.com/nan/images/nan-title1.jpg" alt="" width="504" height="144" vspace="25" border="0" align="left" />
<p align="center"><?php bloginfo('description'); ?></p>
Update 23.02.06 I have revised the code so that it is more readable and up to date with the site. The many <br> you see are there so that the description (amusing bits…) is centered within the rectangle.
Related Article: My favourite WordPress plugins
Related Article: It’s raining tags, alleluia!
5 thoughts on “Adding an image to Black-Letterhead theme”
I have tried to hack this theme for weeks now, I’m still not able to get an image even with your code. I am on my own domain, maybe this solves your sub domain issue that you spoke of on the Codex only? If yo9u have time to help it would really gelp me.
I don´t know if I´ll be able to help you because my knowledge on the field is very limited (trial and error mostly), but you can send me an email with the code you tried and I´ll see if I find something I can fix 🙂
I use a version of black letterhead myself and the code i used which btw also links the img is this
<center><a href=”<?php echo get_settings(‘home’); ?>”><img src=”url to img”></a></center>
<div class=”description”><?php bloginfo(‘description’); ?></div>
Hope that helps