This is an issue that arises when the website is already on https (SSL security), and attempting to open a video in lightbox results in no action
More specifically, this issue is caused by the prettyphoto script from the WPBakery Plugin which enables showing lightbox videos.
There are two solutions that can help you with this.
- The first and the more straightforward option would be to change the handler from prettyphoto to pretty-photo in the functions.php file:
You can access the functions.php file via the FTP (file transfer protocol) or in your WordPress backend by navigating to Appearance > Theme Editor:
You’ll see the option to choose the functions.php file in the right hand corner:
You should pay extra attention when editing the functions.php file. - The second option involves a slight modification of the code inside the functions.php file. What’s required is a deregistration of the function which handles the prettyphoto.
After this, you need to add the following code to the functions.php file:
if ( ! function_exists('qodef_remove_vc_prettyphoto')) { function qodef_remove_vc_prettyphoto() { wp_dequeue_script( 'prettyphoto' ); wp_deregister_script( 'prettyphoto' ); } add_action( 'wp_enqueue_scripts', 'qodef_remove_vc_prettyphoto', 9998 ); } if ( ! function_exists('qodef_add_theme_prettyphoto')) { function qodef_add_theme_prettyphoto() { wp_enqueue_script( 'prettyphoto', QODE_ASSETS_ROOT . '/js/modules/plugins/jquery.prettyPhoto.js', array( 'jquery' ), false, true ); } add_action( 'wp_enqueue_scripts', 'qodef_add_theme_prettyphoto', 9999 ); }
After you’ve made this modification, you should save the changes in your functions.php file and check if the lightbox video displays properly this time over.