• This is what my header.php says:

    <?php
    /**
    * @package WordPress
    * @subpackage Default_Theme
    */
    ?>
    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt;
    <html xmlns=”https://www.w3.org/1999/xhtml&#8221; <?php language_attributes(); ?>>

    <head profile=”https://gmpg.org/xfn/11″&gt;
    <meta http-equiv=”Content-Type” content=”<?php bloginfo(‘html_type’); ?>; charset=<?php bloginfo(‘charset’); ?>” />

    <title><?php wp_title(‘«’, true, ‘right’); ?> <?php bloginfo(‘name’); ?></title>

    <link rel=”stylesheet” href=”<?php bloginfo(‘stylesheet_url’); ?>” type=”text/css” media=”screen” />
    <link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” />

    <style type=”text/css” media=”screen”>

    <?php
    // Checks to see whether it needs a sidebar or not
    if ( empty($withcomments) && !is_single() ) {
    ?>
    #page { background: url(“<?php bloginfo(‘stylesheet_directory’); ?>/images/kubrickbg-<?php bloginfo(‘text_direction’); ?>.jpg”) repeat-y top; border: none; }
    <?php } else { // No sidebar ?>
    #page { background: url(“<?php bloginfo(‘stylesheet_directory’); ?>/images/kubrickbgwide.jpg”) repeat-y top; border: none; }
    <?php } ?>

    </style>

    <?php if ( is_singular() ) wp_enqueue_script( ‘comment-reply’ ); ?>

    <?php wp_head(); ?>
    </head>
    <body <?php body_class(); ?>>
    <div id=”page”>

    <div id=”header” role=”banner”>
    <div id=”headerimg”>
    <h1>/”><?php bloginfo(‘name’); ?></h1>
    <div class=”description”><?php bloginfo(‘description’); ?></div>
    </div>
    </div>
    <hr />

    The image that I would like to be my header is: https://www.dharmabakery.com/blog/wp-content/uploads//header_3.jpg

    Where in the code do I put that to make it display correctly?

Viewing 8 replies - 1 through 8 (of 8 total)
  • You could use CSS to set the image as a background:
    #headerimg {
    background: #fff url("https://www.dharmabakery.com/blog/wp-content/uploads/header_3.jpg") no-repeat 9px 1px;
    }

    See style.css, line 260.

    Thread Starter dinataruni

    (@dinataruni)

    But where am I supposed to insert that? I’ve tried that before and it just stays white.

    Thread Starter dinataruni

    (@dinataruni)

    OK I got it to display but there is weird white writing over it and white space around it. How do I get rid of that?

    Thread Starter dinataruni

    (@dinataruni)

    Please help?

    Thread Starter dinataruni

    (@dinataruni)

    Anyone? I’m sure it’s really easy I just don’t know how to do it. I read the section in the Docs about the header and i tried to do what it said and it didn’t really get me anywhere.

    Funkphenomenon

    (@funkphenomenon)

    Looks like you got gid of the white text with a text-indent. The white border around the image is in the image itself, so if you want to get rid of that, you need to crop the white border off the image.

    Thread Starter dinataruni

    (@dinataruni)

    The white border is not in the image. And there is still white text over my image, too. That’s why the text for “Dharma Bakery” looks all funny… because there are random white letters that white out bits and pieces. I’ve been trying to fix it but haven’t gotten anywhere. Can someone help me?

    Thread Starter dinataruni

    (@dinataruni)

    Also, I noticed that the header doesn’t stay at the top of the page when I click on one of the entries.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Header Help?’ is closed to new replies.