VideoPress content_width bug? (1 post)

  1. Ronald Huereca
    Posted 6 years ago #

    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;


Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 6 years ago by Ronald Huereca
  • This topic is not a support question
  • WordPress version: 2.9.2