Play MP4 video in Featured Video Widget

Support Area Forums Foundation Play MP4 video in Featured Video Widget

Tagged: ,

Viewing 3 posts - 1 through 3 (of 3 total)
URL to the page in question: http://www.VCHousingTrustFund.org
  • Author
    Posts
  • #27589
    Karen Fraser
    Participant

    I uploaded an MP4 video into Media Library and added a Featured Video Widget to the default sidebar. The directions ask me to enter the “embeded code” not just the “URL”. How do I do that? How do I find this info?

    #27592
    Bill Robbins
    Moderator

    Hello Karen,

    Great question there. The video widget that’s part of the theme is really made for services like YouTube or Vimeo that provide an embeddable player.

    But you can actually use a text widget to create a video widget by using a shortcode there. There is a page in the WordPress Codex at http://codex.wordpress.org/Video_Shortcode that talks about it.

    Essentially you would add this to your text widget:

    
    [video src="http://yoursite.com/video.mp4"]
    

    replacing the http://yoursite.com/video.mp4 with the URL to your video. You can get that in the Media Library. Once the widget has been updated, I believe that will give you a MP4 video in a widget.

    If you run into trouble, let me know.

    Take care,
    Bill

    #27597
    Bill Robbins
    Moderator

    Karen,

    You can give this a shot to resize your video. Create a new line in the text widget before the video shortcode and add this:

    
    <div class="fit-video">
    

    and then after the video shortcode, create a new line and add this:

    
    </div>
    

    Make sure to copy those codes from the support site and not the notification email as email tends to mangle code.

    Let me know if you run into trouble,
    Bill

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Play MP4 video in Featured Video Widget’ is closed to new replies.