• When a featured video is added to a product, the product image gallery loses it’s structure. The video shows and so does the product gallery but I cannot navigate through the gallery and the video becomes narrowed

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hi ,
    Can you give me a product link where you have set a video?
    So i can check.
    Let me know
    YITHEMES

    Thread Starter dalea

    (@dalea)

    Hi,

    An example product can be found at this URL: https://www.globalunderground.co.uk/product/deep-dish-super-deluxe-collectors-edition/

    Thanks

    Plugin Author YITHEMES

    (@yithemes)

    Hi,
    I checked and there is an incompatibilty with your theme.

    Try to add this custom code in the file functions.php

    if ( defined( 'YWCFAV_FREE_INIT' ) ) {
    
    	if ( ! function_exists( 'ywcfav_add_free_custom_style' ) ) {
    		add_action( 'wp_enqueue_scripts', 'ywcfav_add_free_custom_style', 99 );
    
    		function ywcfav_add_free_custom_style() {
    
    			global $YITH_Featured_Audio_Video;
    
    			if ( is_product() && ( ! is_null( $YITH_Featured_Audio_Video ) && $YITH_Featured_Audio_Video->product_has_video() ) ) {
    
    				$style = "
    		            .woocommerce div.product .images .flex-viewport [data-thumb], .flex-control-nav.flex-control-thumbs { 
    		                display:none!important;
    		            }
    		            ";
    
    				wp_add_inline_style( 'ywcfav_style', $style );
    			}
    
    		}
    	}
    }

    Let me know

    Thread Starter dalea

    (@dalea)

    Hi, thanks you for looking into this issue.

    I have used the above code. The video now works as desired but the product gallery is now not displayed on the product.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Adding a Video causes the product images layout to be lost’ is closed to new replies.