Title: Which File does this Code Go Into?
Last modified: August 20, 2016

---

# Which File does this Code Go Into?

 *  [agfreesafety](https://wordpress.org/support/users/agfreesafety/)
 * (@agfreesafety)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/which-file-does-this-code-go-into/)
 * I want to begin putting Google Adsense ads in the upper left-hand corner of my
   posts. I [found an article](http://www.etechbuzz.com/adsense-unit-inpost-content-corner/)
   that shows how to do this, but the article doesn’t mention what file this code
   should go into.
 * I would like for it to automatically put the adsense code in the upper left-hand
   corner on each post, so which file would I put the Adsense code (in addition 
   to the piece of code referenced in the above-referenced blog post) to get it 
   to show up automatically in each post?

Viewing 9 replies - 1 through 9 (of 9 total)

 *  [tomaltman](https://wordpress.org/support/users/tomaltman/)
 * (@tomaltman)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/which-file-does-this-code-go-into/#post-2313833)
 * It really depends on what theme you are running…more than likely single.php
 *  Thread Starter [agfreesafety](https://wordpress.org/support/users/agfreesafety/)
 * (@agfreesafety)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/which-file-does-this-code-go-into/#post-2313835)
 * I’m running the [Silver Ray theme](http://www.blogperfume.com/silveray-clean-and-soft-3-column-wordpress-theme/).
   Single.php?
 *  [tomaltman](https://wordpress.org/support/users/tomaltman/)
 * (@tomaltman)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/which-file-does-this-code-go-into/#post-2313840)
 * It is a theme file…
 * If that doesn’t make sense – then you are probably in over your head.
 * Does it make sense?
 *  Thread Starter [agfreesafety](https://wordpress.org/support/users/agfreesafety/)
 * (@agfreesafety)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/which-file-does-this-code-go-into/#post-2313845)
 * LOL I know what the single.php file is, I was asking if it’s indeed the single.
   php file that this code needs to be added to, considering the theme I’m using…
 *  Thread Starter [agfreesafety](https://wordpress.org/support/users/agfreesafety/)
 * (@agfreesafety)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/which-file-does-this-code-go-into/#post-2313880)
 * Sorry to bug you again, but I added the code to the Single.php file, and the 
   ad isn’t showing up. According to the code, it’s supposed to be showing up in
   the upper left hand corner of [the post](http://www.get2theleague.com/training/wanna-be-one-of-the-top-college-wide-receivers-heres-what-nfl-scouts-look-for-in-receivers-part-2#more-1432).
 * Here’s a link to what my single.php looks like: [http://pastebin.com/yc6NvYX8](http://pastebin.com/yc6NvYX8)
 *  [tomaltman](https://wordpress.org/support/users/tomaltman/)
 * (@tomaltman)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/which-file-does-this-code-go-into/#post-2313887)
 * There is an adsense ad in the article…is that the one you put there?
 *  Thread Starter [agfreesafety](https://wordpress.org/support/users/agfreesafety/)
 * (@agfreesafety)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/which-file-does-this-code-go-into/#post-2313915)
 * That’s a different one. I created a function that I call in the text of the post
   to insert that one (the one you see) wherever I choose.
 * I made this thread regarding one I’m trying to insert automatically at the top-
   left hand corner of the post.
 *  [Samuel B](https://wordpress.org/support/users/samboll/)
 * (@samboll)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/which-file-does-this-code-go-into/#post-2313918)
 * [http://wordpress.org/extend/plugins/adsense-manager/](http://wordpress.org/extend/plugins/adsense-manager/)
 * [http://wordpress.org/extend/plugins/all-in-one-adsense-and-ypn/](http://wordpress.org/extend/plugins/all-in-one-adsense-and-ypn/)
 *  Thread Starter [agfreesafety](https://wordpress.org/support/users/agfreesafety/)
 * (@agfreesafety)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/which-file-does-this-code-go-into/#post-2313947)
 * Thanks a lot. I installed the All in One Adsense and YPN, and I configured it
   to show an ad in the upper left hand corner of the posts. [As you can see](http://www.get2theleague.com/training/hey-d-tackles-master-these-defensive-lineman-techniques-and-watch-the-scouts-come-runnin%E2%80%99),
   the space is reserved for the ad, but it’s blank.
 * I set this up and noticed this issue about 8 hours ago, and figured I’d give 
   it some time, but the issue still exists.
 * In the configuration settings for the All in One Adsense Plug in in WordPress,
   I have the publisher ID entered, without the “pub-” prefix, so I’m not sure why
   it’s showing up blank. Any ideas? Thanks for the help, and the suggestion.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Which File does this Code Go Into?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 3 participants
 * Last reply from: [agfreesafety](https://wordpress.org/support/users/agfreesafety/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/which-file-does-this-code-go-into/#post-2313947)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
