Bring Your Business to Life › Support › Image Store › disable touch.jquery?
- AuthorPosts
- April 29, 2013 at 5:08 pm #52853DaveParticipant
Hi,
We use our own Fancybox 2 viewer in place of the bundled lightbox. Since updating from v 3.2.0 to 3.2.7, we saw a number of wild side-effects, such as the detail image appearing both in fancybox and in the background. Our images were being double-bound. It was resolved by commenting out the “wp_enqueue_script…ims-touch” line 756 of _inc/store.php. Naturally, this hack causes another js error due but things otherwise are working again.
Is there a way we can cleanly disable “jquery touch” from being loaded automatically via this plugin? We don’t need gallerific either… a minimal front-end would be most preferred.
Thanks!
May 4, 2013 at 1:00 am #52906Xpark MediaKeymasteryou can remove “gallerific” safely if you disable the slideshow page and you are not using the shortcode slideshow option.
use the “wp_dequeue_script” hook in your theme or custom plugin
function mytheme_dequeue_scripts(){ wp_dequeue_script( 'ims-touch' ); wp_dequeue_script( 'galleriffic' ); }add_action( 'wp_enqueue_scripts','mytheme_dequeue_scripts', 100 );
May 9, 2013 at 8:18 am #53009DaveParticipantPerfect. Thank you very much!
May 9, 2013 at 8:25 am #53010DaveParticipantThere is a side effect to this though. The following javascript error occurs on page load:
Error: TypeError: e(…).imstouch is not a function
Source File: http://…/wp-content/plugins/image-store/_js/store.js?ver=3.2.7
Line: 12However everything still seems to work.
May 18, 2013 at 2:12 pm #53136Xpark MediaKeymaster@ Dave,
We added to code to prevent js erros if some javascript files are removed on version 3.2.9
- AuthorPosts
- You must be logged in to reply to this topic.