Need help? Check out our Support site, then


seperating line between posts?

  1. hello, im having abit of trouble, im currently using adsense between my 1st and 4th post on the main page, but i would like a line underneath each ad

    my blog: http://www.hv-designs.co.uk/wordpress (still under construction)

    heres my index.php code

    -----------
    <?php get_header(); ?>
    <div id="wptp_fixed_content">
    <div id="wptp-init-blog">
    <?php echo getad('bannerad'); ?>
    <div class="clear-separate"></div>

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

    <?php $count = 1; ?>

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

    <div class="blog-post" id="post-<?php the_ID(); ?>">
    <h1>" title="<?php the_title(); ?>"><?php the_title();

    ?></h1>
    <div class="post-admin">Posted by <?php the_author(); ?> in <?php the_time('F jS, Y')

    ?> | "><?php comments_number('no comment','1

    comment','% comments'); ?> <?php edit_post_link('Edit', '', ''); ?></div>

    <div class="post-subs">Published in <?php the_category(', ') ?></div>

    <div class="post-entry"><?php the_content('Take This Tutorial...') ;?></div>

    </div>

    <div class="clear-separate"></div>

    <?php if ($count == 1) : ?>
    <script type="text/javascript"><!--
    google_ad_client = "pub-2704710933002669";
    google_ad_width = 468;
    google_ad_height = 60;
    google_ad_format = "468x60_as";
    google_ad_type = "text_image";
    //2007-06-04: tutorials page
    google_ad_channel = "1015033318";
    google_color_border = "f8f8f8";
    google_color_bg = "f8f8f8";
    google_color_link = "ef4498";
    google_color_text = "333333";
    google_color_url = "ef4498";
    //-->
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    <?php elseif ($count == 4) : ?>
    <script type="text/javascript"><!--
    google_ad_client = "pub-0703417483398979";
    google_ad_width = 468;
    google_ad_height = 60;
    google_ad_format = "468x60_as";
    google_ad_type = "text_image";
    //2007-05-28: hv-designs 468x60
    google_ad_channel = "0252805544";
    google_color_border = "f8f8f8";
    google_color_bg = "f8f8f8";
    google_color_link = "ef4498";
    google_color_text = "333333";
    google_color_url = "ef4498";
    //-->
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    <?php endif; $count++; ?>
    <?php endwhile; ?>

    <div class="clear-separate"></div>

    <div id="wptp_post_nav"><?php if(function_exists('wp_pagenavi')): ?> <?php wp_pagenavi();

    ?><?php else : ?><?php posts_nav_link(); ?><?php endif; ?></div>

    <div class="clear-separate"></div>

    <?php else: ?>

    <h3>Sorry The Post Have Been Removed</h3>

    <?php endif; ?>

    </div>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>
    -------------------

    help much appreciated

  2. I think you're in the wrong forum. This forum is for WP.com blogs; I think you're running the WP.org software. We don't have the same kind of access you do, so we won't be able to help you. You need to ask over at http://wordpress.org/support .

  3. thank you

Topic Closed

This topic has been closed to new replies.

About this Topic