WordPress.org

Ready to get started?Download WordPress

Forums

How to add an Ad above header??????? (6 posts)

  1. blogger21
    Member
    Posted 4 years ago #

    I would like to add an ad above my header. My website is http://www.funwithfreebies.com and the header code is below. Thanks!

    <!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">

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

    <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(); ?>

    </head>

    <body>
    <div id="rap">
    <div id="header">

    <div class="header-title">/"><?php bloginfo('name'); ?></div>
    <div class="header-description"><?php bloginfo('description'); ?></div>

    </div>
    <!-- end header -->

    <?php get_sidebar(); ?>

  2. FishDogFish
    Member
    Posted 4 years ago #

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

  3. blogger21
    Member
    Posted 4 years ago #

    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="http://partners.mysavings.com/z/3173/CD3437/"><img src="http://partners.mysavings.com/42/3437/3173/" alt="MyPoints" border="0"></a>
    <div id="header">

    moderated to fix code

  4. alchymyth
    The Sweeper & Moderator
    Posted 4 years ago #

    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="http://partners.mysavings.com/42/3437/3173/" alt="MyPoints" border="0"></a></div>
    <div id="header">
  5. FishDogFish
    Member
    Posted 4 years ago #

    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="http://partners.mysavings.com">
    <div id="header">Header content</div "header">
    </div "rap">
  6. blogger21
    Member
    Posted 4 years ago #

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

    border="0">

    How do I get rid of that?

Topic Closed

This topic has been closed to new replies.

About this Topic