Support » Fixing WordPress » Make Header An Image

  • Resolved myrnatheminx

    (@myrnatheminx)


    I’ve been working on this for a while and can’t make it work. I want to add an image to my header and there is something wrong with my code. I have read through the many threads (I know!) on this subject but it looks like I need some individual help. My code now is:

    Style.css
    #header {
    background-image:url(“/images/headsm.jpg”);
    background-repeat:no-repeat; }
    #headerimg {
    margin: 7px 9px 0;
    height: 192px;
    width: 740px; }

    My header.php

    <div id=”header” onclick=”location.href='<?php bloginfo(‘url’); ?>’;” style=”cursor: pointer;”>
    <div id=”headerimg”>
    <h1 class=”blogtitle”><?php bloginfo(‘name’); ?></h1>
    <p class=”description”><?php bloginfo(‘description’); ?></p></div>
    </div>

    I created the image smhead.jpg to be the same size as indicated in the CSS code and it is in the images directory. I just cant get the new header image to show up.

    Thanks–if I figure this one out, I promise to stay out of the forums for a couple of weeks 😉

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Make Header An Image’ is closed to new replies.