Forums

How do I add adsense below every post. (6 posts)

  1. zigzam
    Member
    Posted 6 years ago #

    How do I add adsense only on the post page in between the post and the comments. I cant seem to find what I need to edit.

    Thanks

  2. estjohn
    Member
    Posted 6 years ago #

    If I udnerstand what you are wanting is for it to be placed on a page that has a single pot on it - liek the permalinks page of an article

    for example, go into your theme, open single.php and post it between these lines
    ----------------------------
    ?php the_content('<p class="serif">Read the rest of this entry »'); ?

    <--------ADSENSE CODE GOES HERE---------->

    p class="postmetadata alt"
    ------------------------
    the above example is using the single.php with the default theme

    or, there are plugins like CGINLINE that will let you post stuff between posts (such as on the main page with multiple posts

  3. moshu
    Member
    Posted 6 years ago #

  4. zigzam
    Member
    Posted 6 years ago #

    My single file looks like:

    <?php get_header(); ?>

    <div id="container">

    <?php include (TEMPLATEPATH . '/theloop.php'); ?>

    <?php get_sidebar(); ?>

    </div><!-- Container //-->

    <?php get_footer(); ?>

    No matter where I place the code it doesn't go directly below the post and above the comments. I don't need a fancy adsense management system.

  5. moshu
    Member
    Posted 6 years ago #

    Because your theme is another one of those badly made themes: the Loop is in the loop.php file.

  6. estjohn
    Member
    Posted 6 years ago #

    what theme are you using?

    oops lol looks like someone answered it right as i was answering too.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags