help needed with adsense in header of blog
-
I have a lovely theme that has a spot in the header for an ad see it here but I can’t figure out how to put my adsense code into the header and replace the jpg that is there now. Your help would be much appreciated. Thanks,
CalebHere is the header.php:
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”https://www.w3.org/1999/xhtml”>
<head profile=”https://gmpg.org/xfn/11″><title>
<?php if ( is_home() ) { ?><?php bloginfo(‘name’); ?> » <?php bloginfo(‘description’); ?><?php } ?>
<?php if ( is_search() ) { ?>Search Results » <?php bloginfo(‘name’); ?><?php } ?>
<?php if ( is_author() ) { global $wp_query; $curauth = $wp_query->get_queried_object(); ?>Author Archives » <?php echo $curauth->nickname; ?> » <?php bloginfo(‘name’); ?><?php } ?>
<?php if ( is_single() ) { ?><?php wp_title(”); ?> » <?php bloginfo(‘name’); ?><?php } ?>
<?php if ( is_page() ) { ?><?php wp_title(”); ?> » <?php bloginfo(‘name’); ?><?php } ?>
<?php if ( is_category() ) { ?><?php single_cat_title(); ?> » Archive » <?php bloginfo(‘name’); ?><?php } ?>
<?php if ( is_year() ) { ?><?php the_time(‘Y’); ?> » Archive » <?php bloginfo(‘name’); ?><?php } ?>
<?php if ( is_month() ) { ?><?php the_time(‘F Y’); ?> » Archive » <?php bloginfo(‘name’); ?><?php } ?>
<?php if ( is_day() ) { ?><?php the_time(‘d F Y’); ?> » Archive » <?php bloginfo(‘name’); ?><?php } ?>
<?php if (function_exists(‘is_tag’)) { if (is_tag()) { ?><?php single_tag_title(“”, true); ?> » Tag Archive » <?php bloginfo(‘name’); ?><?php } } ?>
</title><meta http-equiv=”Content-Type” content=”<?php bloginfo(‘html_type’); ?>; charset=<?php bloginfo(‘charset’); ?>” />
<meta name=”description” content=”<?php bloginfo(‘description’) ?>” /><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=”application/rss+xml” href=”<?php bloginfo(‘comments_rss2_url’) ?>” title=”<?php echo wp_specialchars(get_bloginfo(‘name’), 1); ?> Comments RSS feed” /><link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” />
<?php wp_get_archives(‘type=monthly&format=link’); ?>
<?php wp_head(); ?></head>
<body>
<div id=”container”>
<div id=”header”>
<div id=”header-left”>
<div id=”logo”>
<p class=”site-title”>“><?php bloginfo(‘name’); ?></p>
<p class=”description” id=”tagline”><?php bloginfo(‘description’); ?></p></div>
</div>
<div id=”header-right”>
<div class=”banner-block”>
<img src=”<?php bloginfo(‘template_directory’); ?>/images/468ad.jpg” />
</div>
<div class=”nav”>
- “>home
- “>subscribe
<?php wp_list_pages(‘depth=1&title_li=’); ?>
</div>
</div>
</div><!–/header–>
<div id=”navbar”>
<div class=”topics”>
-
<?php wp_list_categories(‘title_li=’); ?>
</div>
<div class=”search”>
<?php include (TEMPLATEPATH . ‘/searchform.php’); ?>
</div></div>
<div id=”wrapper”>
- The topic ‘help needed with adsense in header of blog’ is closed to new replies.