• when i switched to twenty fourteen, the size of videos shrank. the code is the same in the post but the video shows up smaller. how can i restore the larger size? i want my videos to show up at 560 wide. thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Try adding this to /wp-content/themes/twentyfourteen/functions.php:

    function change_embed_defaults()
    {
    	return array
    	(
    		'width' => 560,
    
    		'height' => 315
    	);
    }
    
    add_filter('embed_defaults', 'change_embed_defaults');

    And add this code to the bottom of /wp-content/themes/twentyfourteen/style.css:

    .embed-youtube
    {
    	margin-left:-43px;
    	position:relative;
    	width:560px;
    }
    Thread Starter Patricia

    (@tapricia)

    znuffn, hi. thank you very much for responding. i have two questions.

    1) do i put these anywhere in those files?

    2) i use a link to the youtube video on its own line, usually, not an embed. will that make a difference?

    thanks for your help.
    patricia

    Patricia:

    You can modify the files by Appearance > Editor in the WordPress admin menu. Once you are in the Theme editor you can select the following files for editing (options on right side of screen):

    Theme Functions (functions.php)

    Stylesheet (style.css)

    Make sure you copy the code exactly into your functions.php file because if you introduce syntax errors you can possibly break your website.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘youtube videos are smaller with twenty fourteen theme’ is closed to new replies.