Title: Adding Adsense between blog posts
Last modified: August 20, 2016

---

# Adding Adsense between blog posts

 *  [lttb](https://wordpress.org/support/users/lttb/)
 * (@lttb)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/adding-adsense-between-blog-posts/)
 * 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!

The topic ‘Adding Adsense between blog posts’ is closed to new replies.

## Tags

 * [between posts](https://wordpress.org/support/topic-tag/between-posts/)
 * [hard-code](https://wordpress.org/support/topic-tag/hard-code/)
 * [wordpress-theme](https://wordpress.org/support/topic-tag/wordpress-theme/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [lttb](https://wordpress.org/support/users/lttb/)
 * Last activity: [13 years, 8 months ago](https://wordpress.org/support/topic/adding-adsense-between-blog-posts/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
