• I have been trying to change the header image on Kubrick from the blue blob to a photo I took myself, which is on my hard drive. (I learned enough CSS and HTML to build my own site, but I know no php at all, so I am very daunted.) I read the tutorial on “Changing the Header Image” in the Codex. I went on Filezilla and uploaded the image (LongBantry.jpg) from my hard drive into interiorpassage.com/blog, my WordPress blog’s address. The problem is I don’t know WHERE in the blog’s files I can now find that image. I didn’t specify any folder. I just sent it over.

    Well, my settings say that all new uploads go into a folder called wp-content/uploads. So I figured the .jpg must be in there. So I went to the Stylesheet file under the files for the default template and typed in this:

    #header {
    background: url(‘wp-content/uploads/LongBantry.jpg’) no-repeat bottom center;
    }

    to replace the images/kubrickheader that was already there. But nothing changed. I’ve been struggling with this for two days and I still feel like I’m drowning in confusion. Any help would be greatly appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • I suggest you upload the file again. because it is going to be part of your theme, put it in /wp-content/themes/default/images

    then you can refer to it in CSS as

    #header {
      background: url(images/LongBantry.jpg) no-repeat bottom center;
    }

    Thread Starter eryan215

    (@eryan215)

    Thanks so much for your reply. I did reload the file into the images folder as above. I changed the CSS in the style.css file as above. But nothing changed on the theme display. It was still the same blue blob.

    So I went instead to header.php and looked for something with the kubrick jpg in it. I could not figure out what to do in that file. I found a string of code that said: #page { background: url(“<?php bloginfo(‘stylesheet_directory’); ?>/images/kubrickbgwide.jpg”-<?php bloginfo(‘text_direction’); ?>.jpg”) repeat-y top; border: none; }

    In that string I inserted my images/LongBantry.jpg instead of the Kubrick that was there. In this case my image did display–so it is in there–but instead of displacing the blue blob it just showed up underneath the blob and over top of all the post text. The blob itself didn’t change at all.

    So I still don’t know what to do.

    Thread Starter eryan215

    (@eryan215)

    Never mind. I changed the blue to a color that matches my color scheme and tweaked the text and decided it looks good the way it is. I’m not going to spend any more time on this image loading issue.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Still trying to change header image’ is closed to new replies.