WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] header image (3 posts)

  1. shortajay
    Member
    Posted 6 years ago #

    I'm editing a ready-made theme and I'm trying to replace a text header with an image. I made an images directory in the theme's directory and placed the header image in there (header.jpg). For whatever reason, I can't get it to show up!

    On the header PHP file, all that's there is the <div> calling for the header ID from the the CSS (as I deleted everything since I don't need it). In the CSS, I've got the following:

    #header {
    background: #FFFFFF;
    width: 960px;
    background: url("<?php bloginfo('stylesheet_directory'); ?>/images/header.jpg") no-repeat;
    margin: 0px auto 0px;
    padding: 10px 0px 10px 0px;
    border-top: 5px solid #658DB5;
    }

    Even if I just call for the image using url(images/header.jpg) it still doesn't work. What's the deal?! This is killing me!

  2. shortajay
    Member
    Posted 6 years ago #

    Anyone? I don't know what I'm forgetting and if somehow the CSS formatting is causing the image not to show up.

  3. shortajay
    Member
    Posted 6 years ago #

    I figured it out ... I had no height set for the header div!

Topic Closed

This topic has been closed to new replies.

About this Topic