• Could you help me how to show youtube thumbnail on a page, and capture and show the video in shadowbox?
    I tried it many times but can not mix them.
    Only text link and shadowbox OR thumbnail and no shadowbox was the result.
    Thank you for the help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Something like this should work fine:

    <a href="https://www.youtube.com/v/3D3kFn_3xRY"><img src="https://img.youtube.com/vi/3D3kFn_3xRY/0.jpg" /></a>

    The Shadowbox JS plugin should then add the rel attribute to the anchor tag automatically, or you can add something like rel="shadowbox;height=385;width=640;player=swf" to the anchor tag.

    Thread Starter Nedudgi

    (@nedudgi)

    Thank You!
    It works in pages already. As I see, the “/0.jpg” was missing.
    But it does NOT work in sidebar. It goes to youtube, and play the video in full screen mode.
    Do you have any idea why?
    And: The size of video in page changes! I changed the video code, and the size became 600px wide (from 120) without any notice.

    You will likely have to specify the rel attribute on the anchor tag if you are placing this in the sidebar, and you will need to make sure that ‘Smart Loading’ in the settings is set to false.

    The plugin has no easy way of automatically adding the rel attribute outside of the post content.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Shadowbox JS] Youtube thumbnail & Shadowbox’ is closed to new replies.