Support » Plugin: WP YouTube Lyte » Video full width

  • ludoviclesieur

    (@ludoviclesieur)


    Nice WP YouTube Lyte plugin !
    But i have an issue by displaying a youtube video in full width (or at default, at 1280×1024).
    The plugin applies a maximum width of 1280px, according to plugin configuration. I found no way to increase this, whathever the method among direct link, iframe, shortcode.

    Note I am using divi theme with builder.

    Thank you in advance for your help !

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    the easiest solution would be to edit player_sizes.inc.php adding e.g.

    $pSize[9]['a']=true;
    $pSize[9]['w']=2560;
    $pSize[9]['h']=1440;
    $pSize[9]['t']=__("Double-maxi 16:9 player","wp-youtube-lyte");
    $pSize[9]['f']="169";

    and changing;
    $pSizeOrder['169']=array(8,1,3,5,7);
    into
    $pSizeOrder['169']=array(8,1,3,5,7,9);

    hope this helps,
    frank

    When we made these changes what will happen when there’s an update?

    Can you have a feature where we can input our own size? The width:640px is not responsive on my theme. I just want to use only max-width:100% instead.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Changes to files in a plugin folder get overwritten when updating imtino.

    I might add a wordpress filter to allow for the $pSize and $wSize arrays to be altered in a future version without having to change the plugin itself.

    Regarding your issue; maybe try addressing this with CSS like so;

    
    .lyte-wrapper{width:100% !important;}

    hope this helps,
    frank

    That’s what I was doing in the past.

    .lyte-wrapper{max-width:100% !important;}
    .lL{max-width:100% !important;}

    Just to saved two short lines of css 🙂 I’ve decided to comment the width out from wp-youtube-lyte.php. I guess I will have to deal with it each time when there’s an update.

    Thank you again for an awesome plugin.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Video full width’ is closed to new replies.