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

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

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

    Thread Starter blogger21

    (@blogger21)

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

    moderated to fix code

    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="https://partners.mysavings.com/42/3437/3173/" 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="https://partners.mysavings.com">
    <div id="header">Header content</div "header">
    </div "rap">
    Thread Starter blogger21

    (@blogger21)

    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?

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