WordPress.org

Ready to get started?Download WordPress

Forums

YITH WooCommerce Featured Video
Don't show related posts at end of youtube videos (2 posts)

  1. emielm
    Member
    Posted 9 months ago #

    Hi,

    Even when I add ?rel-0 to my youtube links, the related posts are still displayed. Can this be solved so the related videos will not show anymore?

    Thanks for your reply in advance and for this great plugin.

    http://wordpress.org/plugins/yith-woocommerce-featured-video/

  2. TheDamian
    Member
    Posted 4 months ago #

    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;
    }

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.