Tag Info

New answers tagged

1

You can for example: Copy the YouTube shortcode from the old theme to your new theme. Locate the line (most likely in the functions.php file): add_shortcode( 'youtube', 'some_function' ); and copy this line and the some_function() to your functions.php in your new theme or better yet - create a new plugin file including: /*Plugin Name: YouTube embed ...


0

Wordpress does a pretty good job of embedding videos at the correct aspect ratio. The width of the embedded video is based on the content width set in your theme's functions.php file. Because of this it sounds as if there may be some styles applied to the iframe element in your theme changing it's size. To ensure that your videos work at any width within a ...



Top 50 recent answers are included