Home Forums Themes Support Claue Want to remove Visual Composer Light box effect on images

Topic Resolution: Resolved
Viewing 3 reply threads
  • Author
    Posts
    • #29172

      I want to remove lightbox effect from photo.

    • #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

    • #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

    • #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

Viewing 3 reply threads

You must be logged in to reply to this topic.