Title: JS Function within admin-header.php is not firing
Last modified: August 20, 2016

---

# JS Function within admin-header.php is not firing

 *  [jcalabro](https://wordpress.org/support/users/jcalabro/)
 * (@jcalabro)
 * [15 years ago](https://wordpress.org/support/topic/js-function-within-admin-headerphp-is-not-firing/)
 * Any reason why a function hard-coded into admin-header.php would not work? Even
   the simplest dialog box call will not work.
    All scripts and html show up fine
   when viewing source, so everything is showing up as it should.
 * What am I missing?
 * Thanks in advance.

Viewing 1 replies (of 1 total)

 *  Thread Starter [jcalabro](https://wordpress.org/support/users/jcalabro/)
 * (@jcalabro)
 * [15 years ago](https://wordpress.org/support/topic/js-function-within-admin-headerphp-is-not-firing/#post-2079055)
 * Sorry for the waste of space, but it’s working now…
    All I did was switch
 * `$(function() {`
 * to
 * `jQuery(document).ready(function($) {`

Viewing 1 replies (of 1 total)

The topic ‘JS Function within admin-header.php is not firing’ is closed to new replies.

## Tags

 * [admin](https://wordpress.org/support/topic-tag/admin/)
 * [admin-header.php](https://wordpress.org/support/topic-tag/admin-header-php/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [jcalabro](https://wordpress.org/support/users/jcalabro/)
 * Last activity: [15 years ago](https://wordpress.org/support/topic/js-function-within-admin-headerphp-is-not-firing/#post-2079055)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
