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