WordPress.org

Ready to get started?Download WordPress

Forums

help with image in header?? (17 posts)

  1. section30
    Member
    Posted 8 years ago #

    Hello,
    I am using the default template supplied by wordpress. I am trying to change the header image so this is what I did to the "header" code. Can someone help me correct this?

    #header { background: url("<?php bloginfo('stylesheet_directory'); ?>http://www.insidethemonster.com/images/imagelinks/Section30.jpg") no-repeat bottom center; }

    This is the image I want to be in the header: http://www.insidethemonster.com/images/imagelinks/Section30.jpg

    Thank you!

  2. abs
    Member
    Posted 8 years ago #

    #header { background: url(http://www.insidethemonster.com/images/imagelinks/Section30.jpg);

    this should do it....

  3. section30
    Member
    Posted 8 years ago #

    Abs thanks. For some reason the header comes up white and blank now. I am so lost with this code.

  4. abs
    Member
    Posted 8 years ago #

    you are in the css file right?

  5. moshu
    Member
    Posted 8 years ago #

    No, abs, read carefully the OP. It is the default theme which has ALL the bg images style in the header.php. Please, don't give misleading advice.

  6. abs
    Member
    Posted 8 years ago #

    oops, i didnt read that part....

    section 30, can you download the image and place it in the images folder and then in the original code replace kubrickheader.jpg with your file name...

  7. section30
    Member
    Posted 8 years ago #

    is there a different way to write for the header.php file?
    I really appreciate any advice

  8. section30
    Member
    Posted 8 years ago #

    Abs, that worked great. One more question (sorry). The default text is still on the header above my image. I have looked into the header php file and the css and can't find the source of this text. Any ideas of where it may be?
    Here is a link to my site so http://www.insidethemonster.com/section30

    Thank you

  9. abs
    Member
    Posted 8 years ago #

    i dont see any text... i just see a black header...

  10. section30
    Member
    Posted 8 years ago #

    Ok, do you see it now?

  11. abs
    Member
    Posted 8 years ago #

    delete this part :

    <div id="headerimg">
    <h1><a href="<?php echo get_settings('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
    <div class="description"><?php bloginfo('description'); ?></div>
    </div>

  12. section30
    Member
    Posted 8 years ago #

    I deleted that code form the "header" page. For some reason it still looks the same?

  13. Chris_K
    Member
    Posted 8 years ago #

    Urgh. Kubrick gives me hives.

    In your theme's header.php, you probably have a block of code towards the bottom that looks like:
    <h1><a href="<?php echo get_settings('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
    <div class="description"><?php bloginfo('description'); ?></div>

    Delete it and your current problem goes away.

    But that introduces a new problem Typically, clicking on a blog's title is a quick link to the main page. You could work around that a bit by getting rid of that inline #headerimage style so that your image isn't a background image and can be linked.

  14. section30
    Member
    Posted 8 years ago #

    Darn, for some reason I dont have any code like that built into the header.php.
    Is there a really simple template to edit that you guys would suggest?
    Thank youy again!

  15. Chris_K
    Member
    Posted 8 years ago #

    Open up the theme's header.php and search for bloginfo('name') It has to be in there somewhere as you're still displaying it on your blog!

    As for alternative themes, wander around http://themes.wordpress.net/ and see if you find something you like.

  16. section30
    Member
    Posted 8 years ago #

    Heres another dumb question. Once I download the template i want how to I apply it to my blog? Meaning, how do I import it?
    Thanks.

  17. Chris_K
    Member
    Posted 8 years ago #

    Using_Themes will get you rolling.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.