Support » Plugin: WP Featherlight - A Simple jQuery Lightbox » Replace PrettyPhoto in Visual Composer

  • Resolved bernardberry646

    (@bernardberry646)


    I would like to use your lightbox instead of crappy PrettyPhoto lightbox in Visual Composer.

    What I did so far was I used this in my functions.php to stop prettyphoto:

    
    function remove_scripts(){
    wp_enqueue_script('prettyphoto' );
    wp_deregister_script('prettyphoto' );
    }
    add_action( 'wp_enqueue_scripts', 'remove_scripts', 100 );
    

    But your plugin doesn’t kick in when I then click images that normally open in prettyphoto lightbox.

    ===========================================

    The only other thing I found was from Visual Composer devs at CodeCanyon, they purposely do not tell people ‘how’ to accomplish this while knowing people complain about how bad prettyphoto is on mobile. All they say repeatedly is: “Hello, you can use prettyPhoto() function in your themes functions.php to overwrite prettyPhoto.”

    Could you please tell me what I would use in this function to get WP Featherlight to work in place of prettyphoto.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Replace PrettyPhoto in Visual Composer’ is closed to new replies.