Support » Themes and Templates » inserting an image into a header

  • I’m used to building web pages with frontpage. This blog stuff is new to me and I haven’t been able to figure out how to insert an image into a header. At the moment I’ve been flitting between the two default themes that Word Press starts you out with.

    Is there any way I can insert a graphic of mine into the top of my blog. Where would I find the instructions on how to do this? Would I need to install a new theme with a different header?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The header image is introduced a bit differently in different themes. In some it is referenced as a background:no-repeat image in the stylesheet, in others the are inserted as background image in the header.php file.

    If you look in the WordPress default theme, in header.php, you will find:
    body { background: url(“<?php bloginfo(‘stylesheet_directory’); ?>/images/kubrickbgcolor.jpg”); }

    You just have to put your own image int the themes images folder and change the image name in the body tag, and you’re all set.

    OK, so I have a jpeg in my home computer. can I put the icon for it straight in the html text you’ve shown me. If so does it replace the: “kubrickbgcolor.jpg?”

    and how do I get the image in my themes image folder? Where is that?

    Acording to the documentation, the name of your image file replaces the “kubrickbgcolor.jpg” entry in the line refernced above in header.php. You can make the edit in the “Edit Themes” subtab. You will have to upload your image file to the same directory where you find “kubrickbgcolor.jpg” so that WP can find it to insert.

    Having said all that – and I hope it works for you – it isn’t working for me! Possibly this is because I’m putting my site together on my desktop instead of constructing it on a server. If you get this to work, please post about it.

    Oops. The file to replace is “kubrickheader.jpg” versus the several other kubricks in the header.php. There is another thread on this topic running. This is a problem with the new default template.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘inserting an image into a header’ is closed to new replies.