WordPress.org

Ready to get started?Download WordPress

Forums

Adding Adsense between blog posts (1 post)

  1. lttb
    Member
    Posted 1 year ago #

    Hey,
    I'm trying to hard code an Adsense banner into my word press blog, but I can't seem to figure it out. I know that I should add

    <?php if ($count == 1) : ?>
    AdSense Code
    <?php endif; $count++; ?>

    right after
    <div class="entry">
    in my index.php, but there's no div class="entry" to be found anywhere. I do have a div class called "entry-content", but it doesn't seem to work after I insert the code below that class.

    Any help is appreciated!

Topic Closed

This topic has been closed to new replies.

About this Topic