• Hi, who know how to add widgets like digg it or adsense ads to every posts that you make and will come out at either on top of the posts or at the footer of each post?

Viewing 5 replies - 1 through 5 (of 5 total)
  • All you need to do is some trivial editing to some files in your theme folder. You’ll need to edit index.php (in the THEME folder) if you want these things to appear only on the front page, and single.php if you want these things to appear only when the post is viewed on its own. Edit both to add it in both places. It should be easy to see where you should put your code.

    Thread Starter successenroute

    (@successenroute)

    <?php get_header(); ?>

    <!– Side Central START –>
    <div class=”SC”>

    <?php $countervariable=1; if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>

    <div class=”Post” style=”padding-bottom: 50px;”>

    <div class=”PostHead”>
    <h1 class=”title”>” href=”<?php the_permalink() ?>” rel=”bookmark”><?php the_title(); ?></h1>
    <p class=”PostDate”>
    <strong class=”day”><?php the_time(‘d’); ?>
    <strong class=”month”><?php the_time(‘M’); ?>
    </p>
    <p class=”PostInfo”>Posted by <?php the_author() ?> as <?php the_category(‘, ‘) ?></p>
    </div>

    <div class=”PostContent”>

    <? if (is_home() && (!$paged || $paged == 1) || is_search() || is_single() || is_page()): ?>
    <?php the_content(‘Read the rest of this entry »’); ?>
    <? else: ?><?php the_excerpt() ?><? endif; ?>

    <ul class=”PostDetails”>
    <li class=”PostCom”><?php comments_popup_link(‘<span>0 Comments</span>’, ‘<span>1 Comment</span>’, ‘<span>% Comments</span>’); ?>
    <?php // the_bunny_tags(‘<li class=”Tags”>’); ?>

    </div>

    </div>

    <!– <?php trackback_rdf(); ?> –>
    <?php endwhile; ?>

    <?php posts_nav_link(”,”,’« Previous Entries’) ?>  <?php posts_nav_link(”,’Next Entries »’,”) ?>

    <?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 endif; ?>
    <!– Side Central END –>
    </div>

    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    above is my index.php ,add to which part? If i want to add it in the footer of every message?

    Thread Starter successenroute

    (@successenroute)

    anyone know the above question?

    How about adding it right after the_bunny_tags?

    Thread Starter successenroute

    (@successenroute)

    i got a codes from Kontera, not sure if the html codes will work with this index.php?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Add Widgets or Adsense ads to every posts’ is closed to new replies.