Title: Code below opening body tag
Last modified: August 21, 2016

---

# Code below opening body tag

 *  Resolved [Abemedpibe](https://wordpress.org/support/users/abemedpibe/)
 * (@abemedpibe)
 * [12 years ago](https://wordpress.org/support/topic/code-below-opening-tag/)
 * Hi everybody
 * I have to install a snippet of code right below the opening <body> tag, but my
   opening bodytag looks like this:
    <body <?php body_class(‘body-class’); ?>> Where
   do I place the snippet of code? If I place it right under the line, it doesn’t
   work

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

 *  [Dave Naylor](https://wordpress.org/support/users/wpranger/)
 * (@wpranger)
 * [12 years ago](https://wordpress.org/support/topic/code-below-opening-tag/#post-4870856)
 * What kind of code is it?
 *  Thread Starter [Abemedpibe](https://wordpress.org/support/users/abemedpibe/)
 * (@abemedpibe)
 * [12 years ago](https://wordpress.org/support/topic/code-below-opening-tag/#post-4870862)
 * Hi
 * Its a piece of code from buysellads.com
 * <!– BuySellAds Ad Code –>
    <script type=”text/javascript”> (function(){ var bsa
   = document.createElement(‘script’); bsa.type = ‘text/javascript’; bsa.async =
   true; bsa.src = ‘[http://s3.buysellads.com/ac/bsa.js&#8217](http://s3.buysellads.com/ac/bsa.js&#8217);;(
   document.getElementsByTagName(‘head’)[0]||document.getElementsByTagName(‘body’)[
   0]).appendChild(bsa); })(); </script> <!– End BuySellAds Ad Code –>
 *  [Matthew Denton](https://wordpress.org/support/users/mdbitz/)
 * (@mdbitz)
 * [12 years ago](https://wordpress.org/support/topic/code-below-opening-tag/#post-4870900)
 * Hi based on your original post you are placing the code snippet in the right 
   place. Do you have a website url with the snippet in place? If so you can view
   source and confirm that the above code is in the body tag.
 *  Thread Starter [Abemedpibe](https://wordpress.org/support/users/abemedpibe/)
 * (@abemedpibe)
 * [12 years ago](https://wordpress.org/support/topic/code-below-opening-tag/#post-4870920)
 * Ok, thank you

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

The topic ‘Code below opening body tag’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [Abemedpibe](https://wordpress.org/support/users/abemedpibe/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/code-below-opening-tag/#post-4870920)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
