I was helping someone on the Forum with a issue with his videos resizing to really small on his AgentPress site. After doing some research, I found what I think is the problem and wanted to share it. Someone posted this on the support forum on WordPress.org – http://wordpress.org/support/topic/links-cause-youtube-videos-to-display-smaller?replies=1, stating his videos were resizing only if the video had been applied to a page that contained other links. If he embedded the code on a page that only contained text, the videos would size correctly. This lead me to look further and then I found this – http://www.wpbeginner.com/wp-themes/how-to-set-oembed-max-width-in-wordpress-3-5-with-content_width/. They state that if you add the code below to your FUNCTIONS.PHP file, this will resolve the issue.
if ( ! isset( $content_width ) ) $content_width = 600;
This is a problem that started happening with WP 3.5 and I wanted to share this in case someone else had the same problem.
Sure, and here’s another one that has even more detail – http://wpengineer.com/2487/disable-oembed-wordpress/..
Some people are saying it’s not working for them. All you do is just post this at the end of Functions.php and set the 600 to whatever width you want.
[php]if ( ! isset( $content_width ) ) $content_width = 600;[/php]
There are some who said that the Jetpack plugin was a conflict and that when they turned it off, then it work. However, I’ve tested this with the most recent version of WP and most recent version of Genesis and it works perfectly for me.
The topic ‘Fix for Video Resizing to Small oEmbeds’ is closed to new replies.
Are you a blogger, web designer, developer, or website owner looking to generate more income?
Promote products for the largest and fastest growing online website platform as part of our affiliate program.