SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Jul 2009
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how do you put an image for a header in a wordpress theme?

    hi my code is below, i want to put an image for the header and this is the header code. could anyone help me please?


    <!-- BEGIN html head -->
    <head profile="ht/gmpgorg/xfn/11">
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    <title><?php require_once("theme_licence.php"); eval(base64_decode($f1)); bloginfo('name'); ?> <?php wp_title(); ?></title>
    <link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" />
    <!--[if lte IE 6]><link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url'); ?>/ie.css" /><![endif]-->
    <script type="text/javascript" src="<?php bloginfo('template_url'); ?>/scripts.js"></script>
    <?php wp_head(); ?>
    </head>
    <!-- END html head -->

    <body>
    <?php start_template(); ?>
    <!-- BEGIN wrapper -->
    <div id="wrapper">
    <!-- BEGIN header -->
    <div id="header">
    <!-- begin pages -->
    <ol>
    <li class="f"><a href="<?php echo get_option('home'); ?>">Home</a></li>
    <?php dp_list_pages(); ?>
    </ol>
    <!-- end pages -->
    <!-- begin logo -->
    <h1><a href="<?php echo get_option('home'); ?>"><?php bloginfo('name'); ?></a></h1>
    <!-- end logo -->
    <!-- begin search -->
    <form action="<?php echo get_option('home'); ?>/">
    <p class="date">Today is July 3, 2009</p>
    <p><input type="text" name="s" id="s" value="<?php the_search_query(); ?>" /></p>
    <button type="submit">Search</button>
    </form>
    <!-- end search -->
    <!-- begin categories -->
    <div class="break"></div>
    <ul>
    <?php dp_list_categories(); ?>
    </ul>
    <!-- end categories -->
    </div>
    <!-- END header -->


    i have deleted some of the text with links in cos its not allowed

  2. #2
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    16,494
    Mentioned
    164 Post(s)
    Tagged
    1 Thread(s)
    Hi rispodium, welcome to the forums,

    If you mean a background image, try adding it in the CSS file using the #header selector, eg.
    Code CSS:
    #header {
      background-image: url('http://www.domain.com/image.jpg');
    }


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •