WordPress.org

Ready to get started?Download WordPress

Forums

wierdness- I can't display my header image, and the theme manager has gone silly (14 posts)

  1. mistafeesh
    Member
    Posted 7 years ago #

    Hello everyone I'm new here!

    I've pretty much got my wp site ready to upload, but there are a couple of little annoyances that are probably related.

    the main thing is that I can't get my header image to display. I'm using the default theme on WP 2.0.4, and all I can see is the css gradation thingy that the theme generates.

    I've changes the .css file to read:
    #header {
    background: url('images/obheader.gif') no-repeat bottom center;
    }

    #headerimg {
    margin: 7px 9px 0;
    height: 192px;
    width: 740px;
    }

    and placed the file "obheader.jpg" in the images folder of the theme.

    Also, and I'm not sure if this is related, the theme manager part of the admin site has gone really strange. Instead of the theme title, description, etc, for each of these the entire .css file is printed out (screenshot at http://www.hallfarm.info/wpwierd.gif). I think this started happening when I tried (unsuccessfully) to install the photon gallery plugin, although I'm sure I removed all the code it told me to add to various pages. In fact, I've just gone away and tried running a fresh WP directory with my existing database and wp-config.php, and the same problem exists, so it must be in the database...

    any ideas???

  2. ekusteve
    Member
    Posted 7 years ago #

    Just a thought...you may want to upload a fresh default theme directory and then name your custom header image kubrickheader.jpg and just replace the default one in the images folder. That way, you don't need to change any code.

    Steve

  3. mistafeesh
    Member
    Posted 7 years ago #

    Hi Steve,

    Sorry, I should have said - that's what I tried first!! I only tried the different filename when that didn't work!

    Dan

  4. ekusteve
    Member
    Posted 7 years ago #

    Do you have a link so we can see it?

  5. mistafeesh
    Member
    Posted 7 years ago #

    Sorry it's on my server at home at the moment. I may well upload it in a bit, though.

    I'm a webbie - I should be able to figure this out!! (hangs head in shame)

  6. mistafeesh
    Member
    Posted 7 years ago #

    OK, 'tis uploaded now, at http://hallfarm.info/index.php

  7. mistafeesh
    Member
    Posted 7 years ago #

    Aagh! And I was beginning to think I understood WP... Now whenever I try to login on the remote site, it redirects me to the local admin!!!

    I'm guessing this isn't related to the other problems.....

    edit - d'oh!! I had to change the site url in the database...

    The admin section seems to work fine on the remote server. no wierd displays of the css file to be seen!

    so now it's just the problem of the header image.

  8. ekusteve
    Member
    Posted 7 years ago #

    I see your site fine, but it looks like you just have the color of the header set to white. When I look at the source code I see this:

    
    http://www.hallfarm.info/wp-content/themes/default/images/header-img.php?upper=FFFFFF&lower=FFFFFF
    

    Which indicates to me that you have set the color to white. Go to your presentation tab and on the default theme you will see a subtab to edit the header...go there and set the upper and lower colors to some other color and see if this fixes if for you.

    Steve

  9. mistafeesh
    Member
    Posted 7 years ago #

    Hi,

    I set it to white because it wasn't displaying the image I created to put there. I can change the colours to anything I like, but i can't get it to display an image.

    I forgot to mention this, but it did work for a short while after I first replaced the image, and then it stopped working when I changed the text colour. Then I fiddled around - I can't remember what I did, but the image re-appeared, and then it vanished again for no apparent reason....

    edit... what should be shown is this image:

    http://www.hallfarm.info/wp-content/themes/default/images/kubrickheader.jpg

  10. mistafeesh
    Member
    Posted 7 years ago #

    I fixed it!!

    for some reason it was prioritising the graded php generated stuff over my image I basically 'broke' the header-img.php file by changing the function name it was asking for to something silly.

    Huzzah!!

    thanks for all your help.

    Dan

  11. aileenf
    Member
    Posted 7 years ago #

    Mistafeesh, I'm tearing my hair out with the same problem! You say you fixed it by "I basically 'broke' the header-img.php file by changing the function name it was asking for to something silly"

    Where did you make this change? What file was asking for header-img.php?

    Thanks for your help.

  12. mistafeesh
    Member
    Posted 7 years ago #

    Hi Aileen,

    I've just seen your post... I'll have a look at the file and try to remember what I did....

  13. mistafeesh
    Member
    Posted 7 years ago #

    Hi.

    I edited public_html/wp-content/themes/default/images/header-img.php.

    the first few lines in the file now read:

    <?php

    $img = 'kubrickheader.jpg';

    // If we don't have image processing support, redirect.
    /*if ( ! function_exists('imagecreatefromjpeg') )*/
    if ( ! function_exists('diechickendie') )
    die(header("Location: obheader.jpg"));

    I think it was the "diechickendie" bit that I renamed. I can't remember what I changed it from....

    And the "obheader.jpg" needs to be whatever you named the image to!

    Hope this helps....

    Dan

  14. thearti7
    Member
    Posted 7 years ago #

    Hi, everyone! I can totally relate to your issues!

    I FINALLY found a theme I like, and I find out the header is preset--I had to make my own! That's done, now I just need to know how to insert it into my page. I know this topic has come up already, but I just want to make sure that my responses are specific to my site. My site is at http://theartistsgryphon.com/.

    Thank you in advance. I too am new at this!
    Juliette

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.