by Suka
2 replies
Hi all

I have installed a simple theme that does not come with a images file, so the Header is all in php format.

I would like to insert my custom header, but i have no idea how to change the header php code. Can anybody help please?

Thanks
#assistance #header
  • Profile picture of the author Istvan Horvath
    First of all: this kind of questions should be asked in the WP support forum: WordPress › Support

    Next, vague question will get vague answers. Unless you tell exactly which theme is active on your blog, what kind of image (size in pixels) are you planning to put there... nobody can really answer your question. All the many thousands of themes are coded differently - there is no answer that would fit all themes!

    I can give you a generic answer (provided you understand CSS): make your image as a background for your header div.
    Or, put your image in the theme's images folder and call it as an image in the header.php for the header div.

    My answers are exactly as good as your question...
    Signature

    {{ DiscussionBoard.errors[2529307].message }}
    • Profile picture of the author Suka
      I apologies for being vague but thank you for the reply.

      I have no idea how to code the php files, and the last time i tried i stuffed my site.

      the link to my site is in my sig.

      here is my php header info

      any advise would be great




      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">



      <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>



      <head profile="http://gmpg.org/xfn/11">



      <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />



      <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> &raquo; Blog Archive <?php } ?> <?php wp_title(); ?></title>



      <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/reset.css" type="text/css" media="screen" />

      <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/rebuild.css" type="text/css" media="screen" />

      <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/wp.css" type="text/css" media="screen" />

      <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'); ?>" />



      <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/p7_eqCols2_10.js"></script>



      <?

      global $Options;

      foreach ($Options as $Value) {

      if (get_settings( $Value['id'] ) === FALSE) { $$Value['id'] = $Value['std']; } else { $$Value['id'] = get_settings( $Value['id'] ); }

      }

      ?>



      <style type="text/css">

      body { background-color: <?php echo $slk_bg_body;?>; color: <?php echo $slk_center_text;?>; }

      #page { background-color: <?php echo $slk_bg_center;?>; }

      #header { background-color: <?php echo $slk_bg_header;?>; }

      #headerimg a { color: <?php echo $slk_header_title;?>; }

      #headerimg .description { color: <?php echo $slk_header_description;?>; }

      #nav { background-color: <?php echo $slk_bg_header;?>; }

      #container { background-color: <?php echo $slk_bg_sidebar;?>; }

      #content { background-color: <?php echo $slk_bg_center;?>; }

      #content h2 { color: <?php echo $slk_center_link;?>; }

      #footer { background-color: <?php echo $slk_bg_header;?>; color: <?php echo $slk_header_description;?>; }

      .widget a { color: <?php echo $slk_sidebar_link;?>; }

      .widget { color: <?php echo $slk_sidebar_link;?>; }

      .widget-title { color: <?php echo $slk_sidebar_text;?>; }

      .post a { color: <?php echo $slk_center_link;?>; }

      .post h2 { color: <?php echo $slk_center_link;?>; }

      a { color: <?php echo $slk_center_link;?>; }



      </style>



      <?php wp_head(); ?>



      </head>



      <body onLoad="P7_equalCols2(0,'content','p','sidebar','p ')">



      <div id="page">



      <div id="header">



      <div id="headerimg">

      <?

      if(is_home()) {

      ?>

      <h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1>

      <?

      } else {

      ?>

      <div id="h1"><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></div>

      <?

      }

      ?>

      <div class="description"><?php bloginfo('description'); ?></div>

      </div>



      </div>

      <div id="nav">

      <?

      if(!is_page())

      {

      $Ad = 'top';

      include (TEMPLATEPATH . '/ad.php');

      }

      ?>

      </div>
      {{ DiscussionBoard.errors[2529474].message }}

Trending Topics