• Resolved Topher

    (@topher1kenobe)


    I used the Columns tool, made a single column, and am putting a Youtube video in there.

    Simply putting in the URL does the oEmbed thing fine, but I’d like to add some parameters, so I tried using the shortcode as per http://en.support.wordpress.com/videos/youtube/

    Like this [youtube=https://www.youtube.com/watch?v=Dcz4vrC7uM8&list=PL0F4EAE74C95BF2A5]

    And it doesn’t render. Is that expected behavior?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi Topher!

    The [youtube] shortcode isn’t native in self-hosted WordPress. The documentation you link to above is for WordPress.com. I believe you can use this shortcode if you install the Jetpack plugin. You could also try using the generic [embed] shortcode: http://codex.ww.wp.xz.cn/Embeds#In_A_Nutshell

    Thread Starter Topher

    (@topher1kenobe)

    Hey Corey, thanks for the input. That doesn’t seem to be working for me either. Here’s what I have:

    [embed width="480" height="360"]http://www.youtube.com/watch?v=u-yuY78nLsg[/embed]

    My video still fills all available space. I noticed it has a class of fitvids, is JS perhaps over-riding that stuff?

    You can see my dev site here: http://dev.codeventure.net/

    Thread Starter Topher

    (@topher1kenobe)

    I just tried putting the frame html from youtube with the same effect. I think fitvids is stepping all over it. Is there a way to set a max width with fitvids?

    Thread Starter Topher

    (@topher1kenobe)

    I resolved this by putting a div around the video:

    .bs-video { /* fitvids */
    margin: 0 auto 40px auto;
    max-width: 480px; /* prevent videos from stretching too wide */
    }

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Youtube Shortcode not working’ is closed to new replies.