Tips and Tricks HQ Support Portal › Forums › WP Lightbox Ultimate › YouTube Shortcode Parameters with PrettyPhoto, Fancybox and ColorBox
- This topic has 3 replies, 2 voices, and was last updated 11 years, 4 months ago by wpCommerce.
-
AuthorPosts
-
July 11, 2013 at 6:03 pm #9318klippetyMember
Hello,
I am trying to use some of the YouTube shortcode parameters with PrettyPhoto, Fancybox and ColorBox.
The page I am testing these on is here:
[http://westminsterav.com/westminstertech/headpod/]
The code I am using for each is:
[wp_lightbox_prettyPhoto_video link=”http://www.youtube.com/watch?v=P947H2bkUx0″ description=”Video description goes here” autoplay=”1″ display_control=”1″ fullscreen=”1″ autohide=”1″ show_suggested_video=”0″ showinfo=”0″ anchor_type=”image” source=”http://westminsterav.com/westminstertech/wp-content/uploads/2013/07/headpod-video-1-295.jpg” title=”Video title goes here”]
[wp_lightbox_fancybox_youtube_video link=”http://www.youtube.com/watch?v=P947H2bkUx0″ title=”Video title goes here” hd=”0″ autoplay=”1″ display_control=”1″ fullscreen=”1″ autohide=”1″ theme=”dark” show_suggested_video=”0″ showinfo=”0″ anchor_type=”image” source=”http://westminsterav.com/westminstertech/wp-content/uploads/2013/07/headpod-video-1-295.jpg”%5D
[wp_lightbox_colorbox_video link=”http://www.youtube.com/embed/P947H2bkUx0″ description=”Video description goes here” autoplay=”1″ display_control=”1″ fullscreen=”1″ autohide=”1″ show_suggested_video=”0″ showinfo=”0″ anchor_type=”image” source=”http://westminsterav.com/westminstertech/wp-content/uploads/2013/07/headpod-video-1-295.jpg” title=”Video title goes here”]
I am not having any luck getting any of the YouTube parameters like “showinfo” or “show_suggested_video” to work with any of these three. I can only get these codes to work with the Lightbox Ultimate Video code:
[wp_lightbox_ultimate_youtube_video_embed videoid=”P947H2bkUx0″ playlist=”” hd=”0″ autoplay=”1″ display_control=”1″ fullscreen=”1″ autohide=”1″ theme=”dark” show_suggested_video=”0″ showinfo=”0″ anchor_type=”image” source=”http://westminsterav.com/westminstertech/wp-content/uploads/2013/07/headpod-video-1-295.jpg”%5D
So, will these codes work with PrettyPhoto, Fancybox or ColorBox, and if so is there documentation or can someone tell me how to get them to work properly, please?
Thanks!
Ted
July 12, 2013 at 12:22 am #56533wpCommerceModeratorHi, prettyPhoto, Fancybox and Colorbox have their own shortcodes to play YouTube videos. You can have a look at all those shortcodes here:
Since normal YouTube shortcodes (the ones above) cannot handle advanced options we made another shortcode for users who are looking for a customized YouTube player:
July 12, 2013 at 5:02 am #56534klippetyMemberSo, the only player that offers the YouTube customizations such as “showinfo” or “show_suggested_video” is the customized player – not PrettyPhoto, FancyBox or Colorbox? Correct?
Also, here is my code for the customized player:
[wp_lightbox_ultimate_youtube_video_embed videoid=”P947H2bkUx0″ playlist=”” hd=”0″ autoplay=”1″ display_control=”1″ fullscreen=”1″ autohide=”1″ theme=”dark” show_suggested_video=”0″ showinfo=”0″ anchor_type=”image” source=”http://westminsterav.com/westminstertech/wp-content/uploads/2013/07/headpod-video-1-295.jpg”%5D
As you can see, the showinfo value is “0” to not show the title information. I notice when the Youtube video finishes playing, the title appears. Why is this?
Thanks.
July 13, 2013 at 12:27 am #56535wpCommerceModeratorSo, the only player that offers the YouTube customizations such as “showinfo” or “show_suggested_video” is the customized player – not PrettyPhoto, FancyBox or Colorbox? Correct?
– yes, you are right.
The
showinfo
parameter causes the player to not displayinformation like the video title and uploader before the video starts playing. So it will not work once the video has finished playing.
In the documentation all the parameters are explained with a description of how they behave (based on YouTube guidelines).
-
AuthorPosts
- You must be logged in to reply to this topic.