Need Personalized Computer Training? We now offer computer training for individuals, small and medium size businesses, and Fortune 500 companies.

Define Default Size Of Embedded Video in WordPress?

By Moe Jame 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

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

Robert 03.27.2011

I keep your blog in my favorite list because it contains useful information about wordpress. In a word, it can be said that your blog is a wordpress tutorial blog.


Add your comment

(Spamcheck Enabled)

New Tutorials in your inbox!

Follow Us

RSS
facebook
twitter