Viewing 15 replies - 1 through 15 (of 20 total)
  • There are several solutions in this thread:
    http://wordpress.org/support/topic/18922

    Thread Starter mediawatch

    (@mediawatch)

    It’s not so much about making it clickable as it is about getting the image to show in the first place. As I mentioned, I’ve been through many threads on these forums and tried a number of things, but something isn’t clicking.

    In the Style.css there are these sections:

    #header {
    margin: -2.4em 0 0 -1.5em;
    padding: 0;
    width: 105.7%;
    width: 740px;
    background-color: #ffe090;
    text-align: center;
    border-bottom: 7px solid #7f0000;
    }

    #header a {
    display: block;
    width: 100%;
    padding: 2em 0;
    margin: 0;
    background-color: #e5f7ff;
    }

    #header a:hover {
    background-color: #dbf4ff;
    }

    The header.css has this:

    <div id=”header”><h1>” title=”<?php bloginfo(‘name’); ?>”><?php bloginfo(‘name’); ?></h1>
    <div id=”tagline”><?php bloginfo(‘description’); ?></div>
    </div>

    I’m just looking for where to insert the image.

    Thanks.

    1. Add a background image declaration to the header section, like
    background-image: url('images/yourimage.jpg');

    2. Since you asked about a “clickable” image I gave you some resources.

    Thread Starter mediawatch

    (@mediawatch)

    It just doesn’t work. I’ve put that code into each of the header statements and at various times I get four images of the logo “blocked” across the header (I know: the “block” tag but changing that didn’t help) and another time it appeared in the tagline section…even though I didn’t put it there.

    I appreciate your patience.

    Try making the img file reference an absolute path instead of a relative one. That worked for me.

    Thread Starter mediawatch

    (@mediawatch)

    I did try that. More of the same. Sorry about this. I actually do know a little about this stuff, it’s just that this one has me baffled.

    Where do you have the header image? Is it in your grimelda theme folder or somewhere else? That will determine the path.

    Thread Starter mediawatch

    (@mediawatch)

    The image does show up at times…it’s just *where* and *how* it shows up that has me baffled.

    The image is at

    http://www.dailytraveldeal.com/wp-content/dailytraveldeal_trans.gif

    One problem is that your header is 740×170 and the image you are trying to use is 312×91. So if you are not really specific how it is displayed, that may be one source of your problems.
    I would create an image 740×126(the area of your header, minus the tagline.
    Are your theme files loose in your wp-content folder, or are they in a folder called grimelda? If in the grimelda folder, I would move the image file there. In your header CSS, you could put something to the effect of:
    background: url(‘header.jpg’) no repeat top;
    Which I believe would leave room for your tagline without interference. I would also specify a height for the header it appears to be approx 170px high, including the tag line.
    Also curious as to why you have a width of 105% AND width set to 740px in your header CSS.

    Thread Starter mediawatch

    (@mediawatch)

    I recreated the banner to be 740×126

    I put it into the Grimelda images folder.

    I changed the background to read:

    background: url(‘header.jpg’) no repeat top;

    I tried an absolute path.

    Now if you look at the page, the tagline is pushed down into the body of the blog and still no banner.

    I’m not sure why there was both a % and a PX reference. Doesn’t make any sense.

    Thread Starter mediawatch

    (@mediawatch)

    Here’s what my stylesheet looks like now:

    #header {
    margin: -2.4em 0 0 -1.5em;
    padding: 0;
    width: 740px;
    background: url(‘header.jpg’) no repeat top;
    text-align: center;
    border-bottom: 7px solid #7f0000;
    }

    #header a {
    display: block;
    width: 100%;
    padding: 2em 0;
    margin: 0;
    background-color: #e5f7ff;
    }

    #header a:hover {
    background-color: #dbf4ff;

    I’m not sure if you changed it back or what, but I just looked at your style sheet and didn’t see the changes. The other question is why the negative margins? I don’t know enough about CSS to understand negative margins, but when I used the web developer plugin for FF and commented out the negative margins, it looked a litte better.
    Also, if you I tried looking in dailytraveldeal.com/wp-content/themes/grimelda/images/header.gif
    and couldn’t find the header image.

    Thread Starter mediawatch

    (@mediawatch)

    I did set things back to the original way, just because it was butt ugly.

    The file is at: http://dailytraveldeal.com/wp-content/themes/grimelda/images/header.jpg

    I’m not sure about the negative margins and the two height listings…this is how the theme came…

    OK, I figured it out. First, the header a, and header hover, are covering up your image. I commented them out, put in the image and it was there. I also set the header height to 150px, and put a top padding on the tagline of I think 80, and got what you are looking for, approximately.
    You will probably want to go into the index and pull the tag that get s the name, or I believe there is a css trick to leave it in, but it not show. Something about acccesibilty, haven’t gotten that far in my design.
    Hope this helps.

    You might want to check out the new article on the WordPress Codex, documentation site:

    http://codex.wordpress.org/Designing_Headers

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘Header Image for Grimelda’ is closed to new replies.