• Hi,

    I’m trying to resize a YouTube video on my home page and float it left. I’ve tried using these classes to no avail:

    .fluid-width-video-wrapper {
    	width: 360px
    	float: left;
    }
    
    .fluid-width-video-wrapper iframe, .fluid-width-video-wrapper object, .fluid-width-video-wrapper embed {
    	height: 200px;
    	width: 360px;
    }
    
    .entry-content iframe, .entry-content object, .entry-content video, .entry-content embed {
    	max-width: 360px;
    	max-height: 200px;
    	float: left;
    }

    I even went into functions.php and changed the code to:

    function hatch_embed_defaults( $args ) {
    
    	$args['width'] = 360;
    
    	if ( is_page() && !is_page_template( 'page.php' ) )
    		$args['width'] = 200;
    
    	return $args;
    }

    But it still says the video size is 1080×630. Yes, I went into the embed code as well and hard coded it. It doesn’t show up when you inspect element though.

    Any suggestions?

    Site: https://joelitmanart.com/it (if it defaults to /en/ click the italian flag on the navigation).

    Thanks!

  • The topic ‘Embedded Video Doesn't Change Size’ is closed to new replies.