WordPress.org

Ready to get started?Download WordPress

Forums

Putting my image in the header of this theme (4 posts)

  1. wann2119
    Member
    Posted 5 years ago #

    I don't even know where to start. I googled this question and only came up with things that I didn't understand.

    My site is: http://www.tinawann.com

    My header code is: `<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

    <head>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    <title><?php
    if (is_home()) {
    echo bloginfo('name');
    } elseif (is_404()) {
    echo '404 Not Found';
    } elseif (is_category()) {
    echo 'Category:'; wp_title('');
    } elseif (is_search()) {
    echo 'Search Results';
    } elseif ( is_day() || is_month() || is_year() ) {
    echo 'Archives:'; wp_title('');
    } else {
    echo wp_title('');
    }
    ?>
    </title>

    <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" />
    <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="EditURI" type="application/rsd+xml" title="RSD" href="<?php bloginfo('url'); ?>/xmlrpc.php?rsd" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    <!--[if lte IE 7]>
    <link href="<?php bloginfo('template_directory'); ?>/ie.css" type="text/css" rel="stylesheet" media="screen" />
    <![endif]-->
    <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' );?>
    <?php wp_head(); ?>
    </head>

    <body>

    <div id="header">

    <div id="blog_title">
    <div id="cap">
    <span class="skip">» skip to content «</span>
    <span class="feeds">">rss §
    ">atom §
    ">rdf
    </span>
    </div>

    <h1><?php bloginfo('name'); ?></h1>
    <p class="description"><?php bloginfo('description'); ?></p>
    <div id="search">
    <?php include (TEMPLATEPATH . '/searchform.php'); ?></div>
    </div>

    <div id="topnav">

      <li class="home <?php if ( is_home()) { echo 'current"'; } else {echo '"'; } ?>>">Home
      <?php wp_list_pages('title_li=&depth=1'); ?>

    </div>

    </div>`

    The image I want to use as my header is: http://www.tinawann.com/Blog%20Images/website.jpg

    Can someone help me?

  2. rizaldy
    Member
    Posted 5 years ago #

    hai tina, have you try to put the image between <h1> tag :
    try change :
    <h1><?php bloginfo('name'); ?></h1>
    with
    <h1><img src="http://www.tinawann.com/Blog%20Images/website.jpg"></h1>

    hope it help :D

  3. wann2119
    Member
    Posted 5 years ago #

    THANK YOU! It worked and I am soooo excited!

  4. rizaldy
    Member
    Posted 5 years ago #

    glad to help
    btw handsome boy u got there :D

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.