VideoPress content_width bug?
-
I’m not sure if this is a bug or note, or perhaps me just using the VideoPress plugin incorrectly.
I inserted into my functions.php file the following code:
global $content_width; $content_width = 620;
I then inserted the shortcode into my post:
[wpvideo xyz]
No matter what I did, the player would always be at a width of 400px.
I dived into the code and made this change, and it fixed it (around line 274). Please correct me if I’m using the plugin incorrectly.
if ( $content_width < $default_width ) { $width = $content_width; } else if ( $content_width > 630 ) { $width = 640; } else { $width = $content_width; }
- The topic ‘VideoPress content_width bug?’ is closed to new replies.