WordPress.org

Support

Support » Plugins and Hacks » YITH WooCommerce Featured Video » Don't show related posts at end of youtube videos

Don't show related posts at end of youtube videos

Viewing 1 replies (of 1 total)
  • I added this filter to my theme’s functions.php:

    /** change the YITH WooCommerce Featured Video embed string to include rel=0 */
    add_filter('woocommerce_single_product_image_html', 'add_yt_rel', 30, 1);
    function add_yt_rel($text) {
    	$return = str_replace('wmode=transparent', 'wmode=transparent&rel=0', $text);
    	return $return;
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Don't show related posts at end of youtube videos’ is closed to new replies.
Skip to toolbar