Archived topic
Wrong Video Size (?)
2 replies · Started by Anonymous on February 17, 2015
I wonder if this can be attributed to GeneratePress ... but look at the size of the youtube "thumbnail" (in fact, an embedded video) on this page:
http://blog.jazzguitarlessons.net/five-chord-melody-tips-jazz-guitarists/
It is way too big on my screen ... but it was fine only a few hours ago. The post has not been changed in months, and suddenly the embedded video looks too big. Very odd. I've updated several plugins today, that might be why.
BUT: I tried to deactivate all plugins to no avail. Then I switched to the default them (twenty fifteen) and video embed was of the good size.
Something wrong with GeneratePress?
Thanks!
Marc-Andre Seguin
JazzGuitarLessons.net
In the latest version, the WP $content_width variable took effect (wasn't working before).
I have it set at 1200, as most things resize down gracefully (images, galleries etc..).
Unfortunatley, YouTube videos don't downsize very gracefully.
Options:
a) Set a new content width in your child theme's functions.php, like this:
global $content_width;
$content_width = 500;
b) Try a plugin like this: https://wordpress.org/plugins/responsive-video-embeds/
c) Manually embed these videos using a width and height that you can set when you grab the embed code.
Let me know :)
This issue has been fixed in 1.2.9 - the theme will figure out the proper content width for you and show videos correctly.
Thanks!