daily pastebin goal
32%
SHARE
TWEET

Untitled

a guest Aug 17th, 2017 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. add_action( 'wp_print_scripts', 'deactivate_lightbox', 100 );
  2. function deactivate_lightbox() {
  3.     if ( !is_page_template('template-products-landing.php') && !is_singular( 'product' ) ) {
  4.         wp_deregister_script( 'hugeit-lightbox-js' );
  5.         wp_deregister_script( 'hugeit-custom-js' );
  6.         wp_deregister_script( 'hugeit-froogaloop-js' );
  7.         wp_deregister_script( 'mousewheel-min-js' );
  8.         wp_deregister_script( 'hugeit-colorbox-js' );
  9.     }
  10. }
RAW Paste Data
Top