• Resolved keithblog

    (@keithblog)


    I have uploaded a new jpg to the image file on server. My book, Visual Quickstart, tells me to open header.php and remove #headerimg { background : comment code from /*…*/ line. I have changed the name to personal .jpg. I cannot find the file with the code to remove

    keithblog

Viewing 3 replies - 1 through 3 (of 3 total)
  • edit -doh!
    Usually it’s header.php in your theme’s folder.
    /wp-content/themes/yourtheme/header.php (or wp-header.php).

    Thread Starter keithblog

    (@keithblog)

    here is my \Themes\Default\ header.php file:
    <!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”&gt;

    <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.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 />

    I can’t find the suggested file

    Thread Starter keithblog

    (@keithblog)

    also, by suggested of a friend, I changed the headerg.jpg to (-headerg.jpg) and renamed my image from personal.jpg to kubrick.jpg

    now I have no image as my header

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WP-default header.php’ is closed to new replies.