Title: Fancybox not working with another Javascript instance
Last modified: August 21, 2016

---

# Fancybox not working with another Javascript instance

 *  [aaronbeebe](https://wordpress.org/support/users/aaronbeebe/)
 * (@aaronbeebe)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/fancybox-not-working-with-another-javascript-instance/)
 * Can anyone help me with a coding issue? I have a javascript feature on my site
   that is hard written into the header.php of my child theme. SInce it’s not a 
   wordpress plugin, it requires jquery to be initiated in that header as well.
 * I think the instance of jquery that’s required to make that script run is cancelling
   out my fancybox plugin and making it not work.
 * I really have no idea what I’m doing here, so please forgive me if this makes
   no sense, but I assume this is a simple problem and I could use a hand. The site
   is at [http://www.aaronbeebe.net](http://www.aaronbeebe.net) and the home page
   image is a fine example of fancybox not activating.
 * Can anyone advise on how to order these things so that everything works as it
   should?
 * [http://wordpress.org/plugins/fancybox-for-wordpress/](http://wordpress.org/plugins/fancybox-for-wordpress/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [aaronbeebe](https://wordpress.org/support/users/aaronbeebe/)
 * (@aaronbeebe)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/fancybox-not-working-with-another-javascript-instance/#post-4396195)
 * Also, if you look at the source code for the home page, the relevant script starts
   at line 141. Do I need to rewrite that somehow? Is this about wp_enqueue? I’m
   so clueless!!

Viewing 1 replies (of 1 total)

The topic ‘Fancybox not working with another Javascript instance’ is closed to new
replies.

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

## Tags

 * [jquery](https://wordpress.org/support/topic-tag/jquery/)

 * 1 reply
 * 1 participant
 * Last reply from: [aaronbeebe](https://wordpress.org/support/users/aaronbeebe/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/fancybox-not-working-with-another-javascript-instance/#post-4396195)
 * Status: not resolved