Title: adding javascript for ads
Last modified: August 19, 2016

---

# adding javascript for ads

 *  [ljcepek](https://wordpress.org/support/users/ljcepek/)
 * (@ljcepek)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/adding-javascript-for-ads/)
 * I am trying to add scripting for an in-text advertising service, but just can’t
   seem to find the right place to insert the line of code. I assumed it best to
   put it just above the body close tag in the footer to keep it from hanging pages,
   but it doesn’t work. Status bar shows it is being read, but no ads. Any suggestions
   as to what file to place it in?

Viewing 1 replies (of 1 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/adding-javascript-for-ads/#post-1231167)
 * > I assumed it best to put it just above the body close tag in the footer to 
   > keep it from hanging pages, but it doesn’t work.
 * It depends upon what the code does and how your theme is constructed.
 * Try adding it to your sidebar.

Viewing 1 replies (of 1 total)

The topic ‘adding javascript for ads’ is closed to new replies.

 * 1 reply
 * 2 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [16 years, 7 months ago](https://wordpress.org/support/topic/adding-javascript-for-ads/#post-1231167)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
