Support » Themes and Templates » How to add an Ad above header???????

  • I would like to add an ad above my header. My website is and the header code is below. Thanks!

    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “”>
    <html xmlns=””>

    <head profile=”″>
    <meta http-equiv=”Content-Type” content=”<?php bloginfo(‘html_type’); ?>; charset=<?php bloginfo(‘charset’); ?>” />

    <title><?php bloginfo(‘name’); ?><?php wp_title(); ?></title>

    <meta name=”generator” content=”WordPress <?php bloginfo(‘version’); ?>” /> <!– leave this for stats –>

    <style type=”text/css” media=”screen”>
    @import url( <?php bloginfo(‘stylesheet_url’); ?> );

    <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’); ?>” />

    <?php wp_get_archives(‘type=monthly&format=link’); ?>

    <?php wp_head(); ?>


    <div id=”rap”>
    <div id=”header”>

    <div class=”header-title”>/”><?php bloginfo(‘name’); ?></div>
    <div class=”header-description”><?php bloginfo(‘description’); ?></div>

    <!– end header –>

    <?php get_sidebar(); ?>

Viewing 5 replies - 1 through 5 (of 5 total)
  • I would put the add in a div and place it between the <div id=”rap”> and the <div id=”header”> divs.

    <div id=”rap”>
    <div id=”AdAboveHeader”>
    <div id=”header”>

    Just want to make sure I understand you correctly. Do I put <div id=”AdAboveHeader”> and then the ad code after it in between the sections you have show above? Thanks for your help!

    So it would look like this?

    <div id="rap">
    <div id="AdAboveHeader"><a href=""><img src="" alt="MyPoints" border="0"></a>
    <div id="header">

    moderated to fix code



    Forum Moderator

    don’t forget to close the div as well:
    (your html link code got lost because you did not use the code button to paste your code (or backticks before and after))

    <div id="rap">
    <div id="AdAboveHeader"><a href="wwwblabla"><img src="" alt="MyPoints" border="0"></a></div>
    <div id="header">

    Yes, you want the Ad div inside the header like this.

    <div id="rap">
    <div id="AdAboveHeader"><bla, bla, bla><img whatever></div>
    <div id="header">Header Text/content/what have you</div>

    As opposed the header inside the Ad div like this…

    <div id="rap">
    <div id="AdAboveHeader"><a href="">
    <div id="header">Header content</div "header">
    </div "rap">

    Hi Thanks for the help. I added it and it worked. The only thing is below it it says


    How do I get rid of that?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to add an Ad above header???????’ is closed to new replies.