Introducing our brand-new Community Forum! Didn't find what you were looking for? Ask away!

Define Default Size Of Embedded Video in WordPress?

By Dusty Porter Share
Browse the WordPress category for more tutorials

How to define the size of embedded video

function.php

  • Copy the following code into the file. Code should be amended to required size.
function embed_defaults($embed_size){
$embed_size['width'] = 600;
$embed_size['height'] = 500;
return $embed_size; 
}
add_filter('embed_defaults', 'embed_defaults');

Save

Did this tutorial answer your question?

If something is still unclear, or you have another question related to this WordPress tutorial please post your question on our forum and ask the community! It's easy and 100% free! Ask a question!

Keywords

EmbeddedFunctionsSizeVideo

More WordPress Tutorials

How to Require Users To Login Before Viewing Posts on WordPress

How to Disable Search Function on WordPress

How to Add A Read More Link on WordPress

How to Add LinkedIn Share Button on WordPress

How to Add Custom Fields Automatically on WordPress

How to Increase Maximum Upload File Size on WordPress

How to Automatically replace words on WordPress

How to Automatically Resize Images on WordPress

How to Define Default Size Of Embedded Video on WordPress

How to Add Minimum Word Count on WordPress

Follow us on Twitter Subscribe to our Feeds Become a Fan on Facebook

One Response