• I am using WP 2.0.4 with the Default / Kubrick theme, and the default header image ( blue ) at the moment. I am trying to replace it with a custom image of mine in the images dir of the theme.
    I thought i found the code for this styles.css around line 40 #header, where it defines the background-url(). Though I set a custom image there, it still shows up the blue blob.
    I am at a total loss here, any help is appreciated.

    -peter

Viewing 9 replies - 1 through 9 (of 9 total)
  • Modifying the Default theme is a true pain.

    Have a look at header.php where you’ll find the link to the actual image being used.

    Thread Starter mrsticks

    (@mrsticks)

    Ive been going nuts. I may be new to WP, but I am no stranger to the internet, and this is truly a pain, I agree. Oh this is default theme v1.6.

    Just for my own sanity:
    Here’s the HTML that gets produced.

    ——8<——-

    <link rel=”EditURI” type=”application/rsd+xml” title=”RSD” href=”https://www.peterstickney.com/xmlrpc.php?rsd&#8221; />
    <style type=’text/css’>
    <!–#header { background: url(‘https://www.peterstickney.com/wp-content/themes/default/images/header-img.php?upper=69aee7&lower=4180b6&#8217;) no-repeat bottom center; }
    #headerimg h1 a, #headerimg h1 a:visited, #headerimg .description { color: black; }
    –></style>
    </head>
    <body>
    <div id=”page”>

    <div id=”header”>
    <div id=”headerimg”>
    <h1>All That is Stickney</h1>
    <div class=”description”>A Full Fledged Stickney Operation</div>

    </div>
    </div>
    <hr />
    ——8<——-

    And here’s the code from header.php. It looks like wp_head() is reponsible for writing some of the above code, including the background image, as I see it, I could be wrong. I know there’s some CSS that defines the bgimage, but that doesnt actually seem to work if I edit that.

    ——8<——-
    <?php wp_head(); ?>
    </head>
    <body>
    <div id=”page”>

    <div id=”header”>
    <div id=”headerimg”>
    <h1>/”><?php bloginfo(‘name’); ?></h1>
    <div class=”description”><?php bloginfo(‘description’); ?></div>
    </div>
    </div>
    <hr />
    ——8<——-

    What is wrong with me?

    -peter

    Wow. Been a while since I looked at the default theme! Apologies as my earlier response was rather offbase.

    So, we’re looking at the css:

    #header {
    background: #73a0c5 url('images/kubrickheader.jpg') no-repeat bottom center;
    }

    You put your image file in wp-content/themes/default/images and gave the proper name there, right?

    Thread Starter mrsticks

    (@mrsticks)

    Yeah I changed that CSS line to my file name and the file is there, yet the Blue remains.

    I suppose I could try another theme maybe.

    I have the artistic ability of a sloth, so making my own theme could be messy, and I was more interested in getting the site to look somewhat decent without the hassle!

    Again, looking at the HTML WP produces, I see the style tag it employs to produce the Blue using “header-img.php?upper=69aee7&lower=4180b6”.
    And that is actually commented out, so I have no good reason why the Blue is being produced at all!

    I’m out for the night, but I will check back here in the AM. Thanks for the help!

    There is no kubrickheader.jpg being mentioned in my default theme header.php – any idea why?

    I have the same problem since upgrading to the current version of WordPress. Any resolution on this? Thanks!

    I was able to get rid of the blue blob by changing the #header style in styles.css. Here’s the default code:

    #header {
    background: #73a0c5 url /(‘images/kubrickheader.jpg’) no-repeat bottom center;

    All I did was change the color to #FFFFFF (white) and the blue blob disappeared. My custom header image (which I named kubrickheader.jpg because I’m lazy) now appears.

    I hope this works for you!

    I just wanna say that changing the color to #FFFFFF didn′t work for me.

    BUT

    Just edit the files as you did and go into “Presentation” -> “Header Image and Color” in the controlpanel.

    then…

    Click on the “Advanced” button.
    Then click on the “Select Default colors” button.

    Voila!! (hopefully!-)
    Then play around whit the setting there to get rid of possibly disstractions =)

    some say that wp 2.0 needs wp 2.0 theme…only. may be thi has some thruth in it….maybe?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘WP 2.0.4 Header Image’ is closed to new replies.