WordPress.org

Ready to get started?Download WordPress

Forums

WP YouTube Lyte
[resolved] Change Video Dimension (3 posts)

  1. diver66
    Member
    Posted 2 years ago #

    Hi,

    I want to insert videos into my sidebar, I have to have a with of 400px. Can I maybe add the size to the shortcode ? If yes, how ? thanks

    http://wordpress.org/extend/plugins/wp-youtube-lyte/

  2. Frank Goossens
    Member
    Plugin Author

    Posted 2 years ago #

    hi diver66;
    you'll have to do 2 things:

    1. open up player_sizes.inc.php and at the bottom add your new size:

    $wSize[5]['h']=333;
    $wSize[5]['w']=400;
    $wSize[5]['depr']=false;

    2. open up lyte/controls-420.png your favorite image editor, resize it to 400 pixels width and save it as controls-400.png and upload it to your webserver

    and that should do it.

    kind regards,
    frank

  3. Daniel Koskinen
    Member
    Posted 2 years ago #

    Hi, a suggestion regarding custom sizes, would it be possible for you to add filters/actions to your sizes template and a filter to include a custom image from an arbitrary directory. That would make it easier to update your plugin in the future without overwriting changes.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.