Different headers
-
Hi all,
So I found some information on the forums about how to change the header with each page and I am having trouble getting it to work.
So I put this in the header.php file under the header div. I can’t for the life of me get it to work. I have the image in the right place etc.
<?php
if(is_page(’67’)){
echo ‘<img src=”images/header-2.jpg” />’;
}
?>here is my header code
<?php bloginfo(‘name’); ?><?php wp_title(); ?>
</title>
<meta http-equiv=”Content-Type” content=”<?php bloginfo(‘html_type’); ?>; charset=<?php bloginfo(‘charset’); ?>” />
<meta name=”generator” content=”WordPress <?php bloginfo(‘version’); ?>” />
<!– leave this for stats please –>
<link rel=”stylesheet” href=”<?php bloginfo(‘stylesheet_url’); ?>” type=”text/css” media=”screen” />
<link rel=”alternate” type=”application/rss+xml” title=”RSS 2.0″ href=”<?php bloginfo(‘rss2_url’); ?>” />
<link rel=”alternate” type=”text/xml” title=”RSS .92″ href=”<?php bloginfo(‘rss_url’); ?>” />
<link rel=”alternate” type=”application/atom+xml” title=”Atom 0.3″ href=”<?php bloginfo(‘atom_url’); ?>” />
<link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” />
<script language=”javascript” src=”date.js” type=”text/javascript”></script>
<?php wp_get_archives(‘type=monthly&format=link’); ?>
<?php //comments_popup_script(); // off by default ?>
<?php wp_head(); ?></head>
<body>
<div id=”wraper”>
<div id=”header”><div id=”logo”>“> <?php bloginfo(‘name’);?><h1><?php bloginfo(‘description’); ?></h1>
</div>
<!–<div id=”searchbox”>
<form method=”get” id=”searchform” action=”<?php bloginfo(‘url’); ?>/”>
<div style=”float:left”><input type=”text” value=”<?php the_search_query(); ?>” name=”s” class=”search” id=”s” style=”padding-left:8px; border:1px solid #000000″/>
</div><div style=”float:right”> <input type=”image” class=”find” id=”searchsubmit” value=”” src=”<?php bloginfo(‘stylesheet_directory’); ?>/images/btn-search.jpg” /></div>
</form>
</div>–>
<div class=”navigation”>-
<?php wp_list_pages(‘depth=1&title_li=’); ?>
</div>
</div>
<div id=”img”></div>
<div>
<div id=”container”>
The topic ‘Different headers’ is closed to new replies.