disable touch.jquery?

HomeSupportImage Storedisable touch.jquery?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #52853
    Dave
    Participant

    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!

    #52906
    Xpark Media
    Keymaster

    @Dave,

    you 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 );
    #53009
    Dave
    Participant

    Perfect. Thank you very much!

    #53010
    Dave
    Participant

    There 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: 12

    However everything still seems to work.

    #53136
    Xpark Media
    Keymaster

    @ Dave,

    We added to code to prevent js erros if some javascript files are removed on version 3.2.9

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.