• I have read many posts and viewed as many themes as I can find. Is there any way to put an image into the header that isn’t part of the background?

    I’ve tried adding the image in through the stylesheet, I’ve tried using tables, custom php, different themes, everything I can think of to put images into the header. But no luck. It almost seems like there’s something about WordPress that prevents it.

    I’ve googled it until I’m sore. Does anyone have any ideas or sample code to lookat?

Viewing 4 replies - 1 through 4 (of 4 total)
  • First off, I don’t know much. But, I have been able to change that in some themes. The main thing is that your image size (width and height) has to be the same size as the header. If the current header has a picture already, I like to open that in my photoimpact and check out the actual dimensions. Then I open a new file with the same size and go at it.

    Other thing is that I have had trouble displaying the images and couldn’t figure out why, like you did. I would put them under wp-content/themes/themename/images and under wp-images. Neither would work on the day I made the change. Then the next day, or login from a different pc would change it and display fine. You can try clearing your cache and/or waiting a day or so before giving up completely.

    Also the proper way to put them in CSS (I think, but it works for me) is:

    background:url(https://whatever.whatever.jpg) no-repeat top left;

    or

    background:url(/images/whatever.jpg) no-repeat top left;

    Thread Starter chinesebob

    (@chinesebob)

    I can do the same thing but that defeats the purpose sorta. What is it about wordpress that prevents it from being able to display individual images in it’s header. I am determined by the end of this week to find a way so any insight anyone has please do.

    Thread Starter chinesebob

    (@chinesebob)

    Ok Here’s an update, with a table in the header I can put an adsense code which displays their image. This may or may not be news to anyone. So I know that a script can be a work around.

    How do we make it so that it can work and that anyone can use it.

    what is preventing you from displaying an image ?

    I do not understand.

    what happens when you say, you code like this ?


    <div id="header">
    <img src="/images/profile.jpg" />
    </div>

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Putting an image in the Header that isn’t the background’ is closed to new replies.