Adjust default sizes for embedded content

Enigma WordPress theme review

Adding this snippet to the functions.php of your wordpress theme will let you update the default embed sizes.

Code Snippet:

function wps_embed_size($embed_size){
$embed_size['height'] = 240;
$embed_size['width'] = 380;
return $embed_size;

add_filter('embed_defaults', 'wps_embed_size');

Comments  Leave a Reply

  1. du lich singapore January 20, 2014 at 8:23 pm

    Nice post

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

WordPress Launch Checklist

The Ultimate WordPress Launch Checklist

We've compiled all the essential checklist items for your next WordPress website launch into one handy ebook.
Yes, Send Me the Free eBook!