Forums

WP 2.0.4 Header Image (10 posts)

  1. mrsticks
    Member
    Posted 3 years ago #

    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

  2. Chris_K
    Administrator
    Posted 3 years ago #

    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.

  3. mrsticks
    Member
    Posted 3 years ago #

    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="http://www.peterstickney.com/xmlrpc.php?rsd" />
    <style type='text/css'>
    <!--#header { background: url('http://www.peterstickney.com/wp-content/themes/default/images/header-img.php?upper=69aee7&lower=4180b6') 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

  4. Chris_K
    Administrator
    Posted 3 years ago #

    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?

  5. mrsticks
    Member
    Posted 3 years ago #

    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!

  6. medicus
    Member
    Posted 3 years ago #

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

  7. shields
    Member
    Posted 3 years ago #

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

  8. GLHQ
    Member
    Posted 3 years ago #

    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!

  9. daen
    Member
    Posted 3 years ago #

    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 =)

  10. YuyuAgong
    Member
    Posted 3 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags