• I’m trying to figure out how to insert a banner ad right below my banner image….

    My theme is the latest version of the Nature Theme.

    This is my HEADER CODE… I’ve tried inserting ad code in many places without success. It puts the ad above my header instead of below it, which is where I want it to go…

    I have a couple of screen shots that I’ve snapped of the ad in the wrong place… just can’t figure out how to get it right!!!

    Will be very grateful for your help!!!
    Tania

    <!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://geotags.com/geo”&gt;

    <title><?php wp_title(”); if (function_exists(‘is_tag’) and is_tag()) { ?>Tag Archive for <?php echo $tag; } if (is_archive()) { ?> archive<?php } elseif (is_search()) { ?> Search for <?php echo wp_specialchars($s,1); } if ( !(is_404()) && (is_search()) or (is_single()) or (is_page()) or (function_exists(‘is_tag’) and is_tag()) or (is_archive()) ) { ?> | <?php } ?> <?php bloginfo(‘name’); ?></title>

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

    <link rel=”stylesheet” href=”<?php bloginfo(‘stylesheet_url’); ?>” type=”text/css” media=”screen”/>

    <link rel=”shortcut icon” type=”image/ico” href=”<?php bloginfo(‘template_url’); ?>/favicon.ico”/>

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

    <script src=”<?php bloginfo(‘template_directory’); ?>/js/addEvent.js” type=”text/javascript”></script>

    <script src=”<?php bloginfo(‘template_directory’); ?>/js/sweetTitles.js” type=”text/javascript”></script>

    <script type=”text/javascript”>

    <!–

    function expandIt(getIt){

    getIt.style.display=(getIt.style.display==”none”)?””:”none”;

    }

    //–></script>

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

    <?php wp_head(); ?>

    </head>
    <meta name=”verify-v1″ content=”IjDOgmPh+rQR+NOeXHMr0VWp9cnZ78OELHFTvI3auGY=” >
    <body>

    <div class=”row”>

    <h1>/”><?php bloginfo(‘name’); ?></h1>

    <?php include (TEMPLATEPATH . ‘/nav.php’); ?>

    </div>
    ——- INSERTED HERE —–

    <div id=”side_ad” style=”text-align:center”>
    <img src=”https://www.shareasale.com/image/Azuri_leaderboard_banner.jpg&#8221; border=”0″>
    </div>

    —- END —-
    <hr />

Viewing 10 replies - 1 through 10 (of 10 total)
  • A link to your site would help…

    Thread Starter purenaturaldiva

    (@purenaturaldiva)

    Sure – https://www.purenaturaldiva.com Entry Page

    All others:
    https://www.purenaturaldiva.com

    Thanks

    Looks like you’ve been trying to insert the banner code too high up on the page. Try adding it in immediately before ‘<div id=”flow”>`. I can’t tell if that’s going to be in your header.php file or your index.php file. With luck, it might just be at the very bottom of header.php.

    Thread Starter purenaturaldiva

    (@purenaturaldiva)

    I couldn’t find
    <div id=”flow”>
    anywhere in the header.php or index.php

    This is my Index.php Code

    ———

    <?php get_header(); ?>

    <div id=”page”>

    <div id=”content” class=”narrowcolumn”>

    <?php if (have_posts()) : ?>

    <?php while (have_posts()) : the_post(); ?>

    <div class=”post”>
    <h2 id=”post-<?php the_ID(); ?>”> ” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><?php the_title(); ?></h2>
    <small >⊆ <?php the_time(‘F jS, Y’) ?> | ≡ Topic: <?php the_category(‘, ‘) ?> | | <?php edit_post_link(‘Edit’,”,’|‘); ?> ˜ <?php comments_popup_link(‘No Comments »’, ‘1 Comment »’, ‘% Comments »’); ?></small>

    <div class=”entry”>
    <?php the_content(‘Read more…’); ?>

    </div>
    <br class=”spacer”/>

    <!–
    <?php trackback_rdf(); ?>
    –>
    </div>
    <?php endwhile; ?>
    <div class=”navigation”>
    <div class=”alignleft”><?php posts_nav_link(”,”,’« Previous Entries’) ?></div>
    <div class=”alignright”><?php posts_nav_link(”,’Next Entries »’,”) ?></div>
    </div>
    <?php else : ?>
    <h2 class=”center”>Not Found</h2>
    <p class=”center”><?php _e(“Sorry, but you are looking for something that isn’t here.”); ?></p>
    <?php include (TEMPLATEPATH . “/searchform.php”); ?>
    <?php endif; ?>
    </div>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    That’s not the template file for your home page – although it does appear to be used for your category pages. However, it looks like the relevant file might be nav.php. If you need to provide samples of any more code, can you use the WordPress pastebin and paste the resulting url here? It makes life easier for everyone.

    Thread Starter purenaturaldiva

    (@purenaturaldiva)

    OK – the nav.php is in pastebin – I’ve never heard of that before… whole new world!

    Nav.php

    @purenaturediva

    Search the plugins page for Easy Adsense. It has a ton of options- including insert ad under banner!

    I’m using it on https://adamcorley.com

    Thread Starter purenaturaldiva

    (@purenaturaldiva)

    Will that work for my own advertisers?
    Or only with Adsense?

    Thread Starter purenaturaldiva

    (@purenaturaldiva)

    Took a look – that inserts the ad into the header and it’s pulling from Adsense….
    I have a potential advertiser that wants to work with me independently… if I can ever figure out how to give them what they want so I can submit a proposal : )

    Yes, it will work with any code.

    Also, I have a question. Have soy products been shown to improve acne?

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Insert Banner ad below banner image’ is closed to new replies.