Conflict with Foundation 5?
-
Hi. I’m running WP 4.1.1 and using the framework Foundation 5.
The plugin was working normally, but when I checked some mobile breakpoints in my theme, I noticed Foundation’s top-bar menu toggle button wasn’t working. I combed my code for an hour or so and couldn’t find anything. Then I remembered seeing an error in my Chrome dev tools console complaining about some odd jquery TypeError. I checked a different website I had built with WP/Foundation and noticed that site didn’t have the same error, so I looked into the error a little more closely and found this:
Uncaught TypeError: undefined is not a function (anonymous function) wp-simple-gallery.js?ver=4.1.1:2
When I click on the wp-simple-gallery reference it shows the following block of code from the plugin:
jQuery(function($){ $('#wpsimplegallery a').colorbox({ maxWidth: '85%'; maxHeight: '85%'; }); });
The same “Uncaught TypeError” seems to be referencing jquery.colorbox-min.js and jquery-2.1.1.min.js as well.
Deactivating the plugin fixed my Foundation top-bar bug.
- The topic ‘Conflict with Foundation 5?’ is closed to new replies.