Title: wp_enqueue_script in functions.php: plugin not working in backend
Last modified: April 27, 2017

---

# wp_enqueue_script in functions.php: plugin not working in backend

 *  [resunoiz](https://wordpress.org/support/users/resunoiz/)
 * (@resunoiz)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/wp_enqueue_script-in-functions-php-plugin-not-working-in-backend/)
 * Hi, I installed your plugin in a theme non from templatesnext to use your useful
   functionality.
 * all works weel, except when I add a wp_enqueue_script to my funtcions.php.
 * after enqueued that script in child theme to override the parent one, the backend
   popup in lightbox to choose the funtionalities doesn’t show properly. It becomes
   a little square of about 20px.
    Removing the wp_enqueue_script line in functions
   all goes well. Why?

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

 *  Plugin Author [marsian](https://wordpress.org/support/users/marsian/)
 * (@marsian)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/wp_enqueue_script-in-functions-php-plugin-not-working-in-backend/#post-9074791)
 * most likely the javascript file already been enqueued in templatesnext toolkit,
   or may be there is javascript error in your page. without looking at the page
   it is difficult to tell.
 *  Thread Starter [resunoiz](https://wordpress.org/support/users/resunoiz/)
 * (@resunoiz)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/wp_enqueue_script-in-functions-php-plugin-not-working-in-backend/#post-9074813)
 * Hi marsian, the problem is that all works well in frontend AND with the same 
   file enqueued in the parent theme. I only changed a slider speed, so i exclude
   an error in the script.
 * I tried to look at the code, but nothing seems wrong. the weird thing is that
   the same enqueued theme.php file in the parent theme gives not that issue, in
   the child does.
 * But I can give you access to my backend to understand better.
    -  This reply was modified 9 years, 1 month ago by [resunoiz](https://wordpress.org/support/users/resunoiz/).
    -  This reply was modified 9 years, 1 month ago by [resunoiz](https://wordpress.org/support/users/resunoiz/).

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

The topic ‘wp_enqueue_script in functions.php: plugin not working in backend’ is
closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/templatesnext-toolkit_445e7e.svg)
 * [TemplatesNext ToolKit](https://wordpress.org/plugins/templatesnext-toolkit/)
 * [Support Threads](https://wordpress.org/support/plugin/templatesnext-toolkit/)
 * [Active Topics](https://wordpress.org/support/plugin/templatesnext-toolkit/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/templatesnext-toolkit/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/templatesnext-toolkit/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [resunoiz](https://wordpress.org/support/users/resunoiz/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/wp_enqueue_script-in-functions-php-plugin-not-working-in-backend/#post-9074813)
 * Status: not resolved