Video in sidebar

  • Author
    Posts
  • #1255670

    Hi I’m wondering how you put a video in the sidebar on your blog. I have not been able to find a video widget, and I’ve heard if you enter the URL in the image box, it should work but I tried it and it just showed up blank.

    #1255986

    You can embed videos from many video services, such as Youtube and Vimeo, by using shortcodes in a text widget.

    See this article for more about shortcodes:

    http://en.support.wordpress.com/shortcodes/

    Just place a Text widget in your sidebar with the appropriate shortcode.

    #1255987

    gregwp
    Member

    To accomplish that, you need to create a new Text Widget, title it whatever you like.

    In the body of the Widget, use the appropriate shortcode.

    For example, if you’d like to use a YouTube video, you would want to copy the URL of the video (pretend we’re using this video: http://www.youtube.com/watch?v=TWfph3iNC-k)

    and add this code to the Widget body:

    [youtube=http://www.youtube.com/watch?v=TWfph3iNC-k&w=250]

    Note the additional “&w=250” at the end of the URL, that’s the width of the sidebar in your theme. Without it, the video may be stretched and not display fully, you’ll need to manually add to each video you post in the sidebar. If you change themes, you should check the documentation to see what the sidebar width is, and adjust accordingly.

    Hope that helps.

    #1256089

    I have added that to the end but an additional “amp;” is always showing up after I save it to my sidebar. I check the video and it’s too small to be played. Am I doing something wrong?

The topic ‘Video in sidebar’ is closed to new replies.