Home › Forums › Themes Support › Claue › Want to remove Visual Composer Light box effect on images
- This topic has 3 replies, 2 voices, and was last updated 5 years, 2 months ago by Harry.
-
AuthorPosts
-
-
February 23, 2019 at 12:35 pm #29172
I want to remove lightbox effect from photo.
-
February 23, 2019 at 4:20 pm #29180
Hi,
Please add below code to claue-child > functions.php
function remove_vc_prettyphoto(){ wp_dequeue_script( 'prettyphoto' ); wp_deregister_script( 'prettyphoto' ); wp_dequeue_style( 'prettyphoto' ); wp_deregister_style( 'prettyphoto' ); } add_action( 'wp_enqueue_scripts', 'remove_vc_prettyphoto', 9999 );
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
February 24, 2019 at 2:00 pm #29214
I added this code and still images open as light box gallery. https://adikkt.com/fashion-blog/fashion-shows/zimmermann-fashion-show-ready-to-wear-spring-2019
Check here
-
February 24, 2019 at 6:39 pm #29220
It now use prettyphoto of WooCommerce, pleasse add more code
function fc_remove_woo_lightbox() { remove_action( 'wp_head', array( $GLOBALS['woocommerce'], 'generator' ) ); wp_dequeue_style( 'woocommerce_prettyPhoto_css' ); wp_dequeue_script( 'prettyPhoto' ); wp_dequeue_script( 'prettyPhoto-init' ); } add_action( 'wp_enqueue_scripts', 'fc_remove_woo_lightbox', 99 );
If you want remove all action on photo please add below code to custom CSS
.vc_gitem-is-link { cursor: inherit; } .vc_gitem-zone .vc-zone-link { pointer-events: none; cursor: none; }
Regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio
-
-
AuthorPosts
You must be logged in to reply to this topic.