• I’ve looked through many support items and I’m still lost.
    I want to change the header on the Default theme to one of my own creation, which is now in the images folder in Default/themes.

    According to instructions, I must change the header.php
    But what is it I exactly need to change?
    Header.php seems to have no reference to kubrickheader.jpg
    Here is my header.php:

    <!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 bloginfo(‘name’); ?> <?php if ( is_single() ) { ?> » Blog Archive <?php } ?> <?php wp_title(); ?></title>

    <meta name=”generator” content=”WordPress <?php bloginfo(‘version’); ?>” /> <!– leave this for stats –>

    <link rel=”stylesheet” href=”<?php bloginfo(‘stylesheet_url’); ?>” type=”text/css” media=”screen” />
    <link rel=”alternate” type=”application/rss+xml” title=”<?php bloginfo(‘name’); ?> RSS Feed” href=”<?php bloginfo(‘rss2_url’); ?>” />
    <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 ( !$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 wp_head(); ?>
    </head>
    <body>
    <div id=”page”>

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

    Please help!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Using WinGrep found reference to kubrickheader.jpg in wp-content/themes/default/functions.php, wp-content/themes/default/style.css, and wp-content/themes/default/images/header-img.php

    Thread Starter alan52

    (@alan52)

    So does that mean I must change all references to kubrickheader.jpg in all 3 of the above to my new header art file?

    The simplest way would be to change the name of your custome header image to kubrickheader.jpg and overwrite the existing jpg in the images folder…then you wouldn’t need to change any references.

    Steve

    Thread Starter alan52

    (@alan52)

    that doesn’t seem to work either.

    Thread Starter alan52

    (@alan52)

    OK, I’m inching along to a solution on changing the Default, blue-blob header- But I’m not there yet.

    So far I’ve added a new jpeg as a test header and named it kubricikheader.jpg in /wp-content/themes/default/images

    You can see it at https://www.jerusalemrepublic.net and my latest post shows what it is.

    It’s there but behind the blob. How do I get rid of that blob? I’ve also tried removing the funtions.php from /default and also eliminating all text in the php. It seems this function is used to recolor the header, so I figured that without it maybe I’d pass Go. But that wasn’t the case. When I moved it, or its text, I got the full size blob back in the original color.

    Any thoughts on where to go from here?

    The ‘blob’ is in 2 places in the default theme.

    First it is between the style tags, woven into a php call for the stylesheet and text direction, about halfway into your header file. There are 2 Kubrick images there (one after the other). Take out the ones you don’t want.

    (note: after removing those kubrick images from my header file, the theme wouldn’t validate until I took the entire style section out …those calls seem to be there for the images or something. The helpful people here suggested the section removal and it worked.)

    The other place where your images (instead of Kubrick’s) go is into the first portion of the style.css file. My own header is entered under #header { background url
    (My background is in the Body section)
    You can also see from the default stylesheet the format for entering the url.

    Vera

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Changing Header in Default Theme’ is closed to new replies.