• calebmedia

    (@calebmedia)


    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,
    Caleb

    Here is the header.php:

    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt;
    <html xmlns=”https://www.w3.org/1999/xhtml”&gt;
    <head profile=”https://gmpg.org/xfn/11″&gt;

    <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”>

    </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”>

Viewing 1 replies (of 1 total)
  • wethead

    (@wethead)

    You know whats really funny, That no one trys anything themeselves anymore.

    I just looked at your blog for 2 seconds and saw the footer link of the guy that made the blog, then clicked on his site and it said “want to custiomize my free mintrie theme”

    and then pointed to this link

    https://www.egracecreative.com/2008/09/26/ministry-free-wordpress-theme/

    That’s your answer , but seriously give yourself some credit and do things yourself ??

Viewing 1 replies (of 1 total)
  • The topic ‘help needed with adsense in header of blog’ is closed to new replies.