Title: insert code into admin header
Last modified: August 19, 2016

---

# insert code into admin header

 *  Resolved [Vast HTML](https://wordpress.org/support/users/erichamby/)
 * (@erichamby)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/insert-code-into-admin-header/)
 * I am making a admin option menu for my site. The problem is the code i am adding
   to change the option boxes is affecting the entire wordpress backend. Is there
   a function or a way to make sure the inserted js only applies to the page and
   not the entire backend?

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

 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/insert-code-into-admin-header/#post-1179139)
 * yes, dont call the js using the admin_head hook
 * [http://wordpress.org/support/topic/123438?replies=3](http://wordpress.org/support/topic/123438?replies=3)
   
   [http://planetozh.com/blog/2008/04/how-to-load-javascript-with-your-wordpress-plugin/?cp=3](http://planetozh.com/blog/2008/04/how-to-load-javascript-with-your-wordpress-plugin/?cp=3)
 *  Thread Starter [Vast HTML](https://wordpress.org/support/users/erichamby/)
 * (@erichamby)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/insert-code-into-admin-header/#post-1179148)
 * i cant get wp_enqueue_script to work at all.
 *  Thread Starter [Vast HTML](https://wordpress.org/support/users/erichamby/)
 * (@erichamby)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/insert-code-into-admin-header/#post-1179151)
 * i got it to work in a few places but yet its still posting the js all over the
   admin head. jeez this is frustrating.
 *  Thread Starter [Vast HTML](https://wordpress.org/support/users/erichamby/)
 * (@erichamby)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/insert-code-into-admin-header/#post-1179227)
 * i still need help.
 *  Thread Starter [Vast HTML](https://wordpress.org/support/users/erichamby/)
 * (@erichamby)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/insert-code-into-admin-header/#post-1179255)
 * got it guys thanks

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

The topic ‘insert code into admin header’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 2 participants
 * Last reply from: [Vast HTML](https://wordpress.org/support/users/erichamby/)
 * Last activity: [16 years, 10 months ago](https://wordpress.org/support/topic/insert-code-into-admin-header/#post-1179255)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
