0

According to the official FAQ, I can't use jQuery Cycle2 with its predecessor, jQuery Cycle plugin.

The problem is, I'm using this on Wordpress, and whenever I enable NextGen gallery, it enqueues the old Cycle plugin, which fails.

Is there a way to use both on the same page, or at least remove NextGen's Cycle and make a compatibility shim to make it use Cycle2?

NoBugs
  • 9,310
  • 13
  • 80
  • 146

1 Answers1

0

It's easy... just replacing the "cycle"s with cycle2 in the Cycle2 source code, makes it usable with

$(something).cycle2({options...})

It's that easy - I don't see why they don't have a cycle2 namespaced version on the site for old cycle compatibility.

NoBugs
  • 9,310
  • 13
  • 80
  • 146
  • I am trying to do something similar. Do I have to replace all "cycle"s with cycle2 or just the function names? There are things like `a.match(/^cycle(.*)/)` and `fn.cycle` in the cycle2 js file. Which ones did you replace? – user1448031 Mar 23 '14 at 13:28
  • I remember seeing someone post cycle2-js with this modification, somewhere. – NoBugs Mar 24 '14 at 02:23