Title: Plugin Enqueue Path
Last modified: August 22, 2016

---

# Plugin Enqueue Path

 *  [Brandon Shutter](https://wordpress.org/support/users/shutterbrandon/)
 * (@shutterbrandon)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/plugin-enqueue-path/)
 * On line 269 of popup-with-fancybox.php
 * function Popupwfb_add_javascript_files() should read:
 *     ```
       function Popupwfb_add_javascript_files()
       {
       	if (!is_admin())
       	{
       		wp_enqueue_script('jquery');
       		wp_enqueue_style( 'jquery.fancybox', plugins_url('popup-with-fancybox/inc/jquery.fancybox.css'));
       		wp_enqueue_script('jquery.fancybox', plugins_url('popup-with-fancybox/inc/jquery.fancybox.js'));
       	}
       }
       ```
   
 * Hardcoding plugin urls is bad 🙂
 * [https://wordpress.org/plugins/popup-with-fancybox/](https://wordpress.org/plugins/popup-with-fancybox/)

The topic ‘Plugin Enqueue Path’ is closed to new replies.

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

 * 0 replies
 * 1 participant
 * Last reply from: [Brandon Shutter](https://wordpress.org/support/users/shutterbrandon/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/plugin-enqueue-path/)
 * Status: not resolved