• I’m new to blogging, sorry if this question is obvious. Here is my blog.
    https://gays4palin.com/blog/

    I used Kubrickr to find an image. Now I am unsure how to make this file, which I uploaded to my site, into my header image. You can see where I changed the link under $img =

    This is what header-img php looks like:

    <?php
    /**
    * @package WordPress
    * @subpackage Default_Theme
    */

    /** @ignore */
    $img = ‘https://gays4palin.com/blog/wp-content/uploads/2009/08/kubrickheader-6.jpg&#8217;;

    // If we don’t have image processing support, redirect.
    if ( ! function_exists(‘imagecreatefromjpeg’) )
    die(header(“Location: kubrickheader.jpg”));

    The header.php reads as follows:

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

Viewing 1 replies (of 1 total)
  • Thread Starter gays4palin

    (@gays4palin)

    NM, I fixed it with some more tinkering, now I need to figure out how to make the title of the blog move to the right.

Viewing 1 replies (of 1 total)
  • The topic ‘Change header image on WordPress Default’ is closed to new replies.