Title: Enqueue Script from pluginurl
Last modified: September 1, 2016

---

# Enqueue Script from pluginurl

 *  [Schalk Joubert](https://wordpress.org/support/users/schalkjoubert/)
 * (@schalkjoubert)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/enqueue-script-from-pluginurl/)
 * Hi,
 * My wordpress install doesn’t use “wp-content” as I changed it to “uploads”
    The
   problem now is that the javascript is enqueued from site url. Is it possible 
   to enqueue from pluginurl instead in next release?
 *  Thank you,
 * wp_enqueue_script( ‘anything-popup-js’, get_option(‘siteurl’).’/wp-content/plugins/
   anything-popup/anything-popup.js’);
 * [https://wordpress.org/plugins/anything-popup/](https://wordpress.org/plugins/anything-popup/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [Schalk Joubert](https://wordpress.org/support/users/schalkjoubert/)
 * (@schalkjoubert)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/enqueue-script-from-pluginurl/#post-7510860)
 * Something like this:
 * wp_enqueue_script( ‘anything-popup-js’, plugins_url(‘/anything-popup/anything-
   popup.js’);

Viewing 1 replies (of 1 total)

The topic ‘Enqueue Script from pluginurl’ is closed to new replies.

 * ![](https://ps.w.org/anything-popup/assets/icon-256x256.png?rev=1017466)
 * [Anything Popup](https://wordpress.org/plugins/anything-popup/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/anything-popup/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/anything-popup/)
 * [Active Topics](https://wordpress.org/support/plugin/anything-popup/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/anything-popup/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/anything-popup/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [Schalk Joubert](https://wordpress.org/support/users/schalkjoubert/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/enqueue-script-from-pluginurl/#post-7510860)
 * Status: not resolved