WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Make Header An Image (5 posts)

  1. myrnatheminx
    Member
    Posted 6 years ago #

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

  2. Jabbok
    Member
    Posted 6 years ago #

    Give us a link to your site.

  3. Root
    Member
    Posted 6 years ago #

    There should not be a forward slash before *images* in the URI.
    But OT that set up is going to be inconsistent across platform. I would ditch the margins.

  4. myrnatheminx
    Member
    Posted 6 years ago #

    wwww.renodiscontent.com

  5. myrnatheminx
    Member
    Posted 6 years ago #

    Thanks---made both changes and I at least have the header there now. Appreciate the help!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags