Title: Adding code before body tag
Last modified: August 19, 2016

---

# Adding code before body tag

 *  Resolved [ruanz3](https://wordpress.org/support/users/ruanz3/)
 * (@ruanz3)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/adding-code-before-body-tag/)
 * I was instructed to add the code for an advertiser before the <body> tag in my
   blog. So i went to my theme editor and added it, but it didnt work. Where is 
   the right body tag to add the code?
 * [http://ruansfedererblog.com/](http://ruansfedererblog.com/)

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

 *  Thread Starter [ruanz3](https://wordpress.org/support/users/ruanz3/)
 * (@ruanz3)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/adding-code-before-body-tag/#post-1143890)
 * whats the point of this forum when u hardly ever get an answer here?
 *  [Mark / t31os](https://wordpress.org/support/users/t31os_/)
 * (@t31os_)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/adding-code-before-body-tag/#post-1143891)
 * What kind of code are you adding?
 *  [Cavalary](https://wordpress.org/support/users/cavalary/)
 * (@cavalary)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/adding-code-before-body-tag/#post-1143897)
 * If it’s before the body tag then it should be inside the head portion, which 
   should be inside header.php (or similar) in your theme. Assuming it’s a script?
   Because the ad itself certainly wouldn’t belong before the body tag.
 * And a little patience doesn’t hurt. If you get no answer after 2.5 days is one
   thing, but 25 minutes is nothing…

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

The topic ‘Adding code before body tag’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [Cavalary](https://wordpress.org/support/users/cavalary/)
 * Last activity: [16 years, 10 months ago](https://wordpress.org/support/topic/adding-code-before-body-tag/#post-1143897)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
