Tips and Tricks HQ Support Portal › Forums › WP Lightbox Ultimate › Lightbox Ultimate – Automatic YouTube video popup
Tagged: Automatic, lightbox, lightbox ultimate auto popup, lightbox ultimate youtube video, popup, video, wordpress, youtube
- This topic has 4 replies, 2 voices, and was last updated 11 years, 10 months ago by wpCommerce.
-
AuthorPosts
-
December 3, 2012 at 7:00 pm #8064Junkie789Member
I am trying to have a single YouTube video popup without using anchor text or an anchor image. I can get the video to play embedded, and I can get it to play with an anchor. But is it possible to simply have the video popup automatically… for instance, when someone visits the homepage of the Word Press site, can the video will popup to greet the user without the user having to click on anything?
Just downloaded and using: WP Lightbox – v1.8.7
December 3, 2012 at 8:12 pm #51993Junkie789MemberSome more details…
I was able to get the window to popup automatically when visiting the page, but can’t get the YouTube video to show-up/play. Just a small box with X to close out. Below is the code… and the page where I’m working on it to test.
CODE:
[wp_lightbox_ultimate_youtube_video_embed videoid=”Ou6oZT4yS6g” width=”500″ height=”400″ hd=”0″ autoplay=”1″ display_control=”1″ fullscreen=”1″ autohide=”2″ theme=”dark” use_https=”” enable_privacy=”” show_logo=”1″ showinfo=”1″ auto_popup=”1″ direct_embed=”” anchor_type=”” text=”” source=””]
WEBPAGE (for testing)
December 3, 2012 at 10:58 pm #51994wpCommerceModeratorHi, Unfortunately, Lightbox Ultimate doesn’t have any popup option for the homepage. The auto popup option we have is very simple and can only work on a post/page.
You need to use one of the three options to pop up/embed a YouTube video with this shortcode:
1. direct embed
2. pop up from anchor text
3. pop up from anchor image
You can easily create an empty div and hide the shortcode inside it. That way no anchor text or image will be visible. For example:
<div style="display:none;">
shortcode goes here
</div>Please make sure to switch to the HTML editor before you do this.
December 3, 2012 at 11:29 pm #51995Junkie789MemberCan you tell me why this code isn’t working:
[wp_lightbox_ultimate_youtube_video_embed videoid=”Ou6oZT4yS6g” width=”500″ height=”400″ hd=”0″ autoplay=”1″ display_control=”1″ fullscreen=”1″ autohide=”2″ theme=”dark” use_https=”” enable_privacy=”” show_logo=”1″ showinfo=”1″ auto_popup=”1″ direct_embed=”” anchor_type=”” text=”” source=””]
It pops up, but no video plays.
December 4, 2012 at 3:54 am #51996wpCommerceModeratorLast time when I checked the page source your videoid parameter was formatted. So when WordPress filtered the shortcode the value of videoid was
<strong><em>...</strong></em>
. This is why your YouTube video is not getting rendered.In the shortcode your
direct_embed
parameter is empty. It means you don’t want to directly embed the video. So either you want to pop up the video (lightbox) from a text or an image. But you haven’t specified any value in theanchor_type
parameter. The values oftext
andsource
are empty as well. The plugin doesn’t know what to do with this shortcode.Please do the following:
1. Save the following YouTube shortcode guide on your computer:
2. Open the PDF guide using Adobe Reader or Acrobat installed on your computer. Copy your desired shortcode from the PDF guide and paste it on a text editor (example: notepad).
3. Replace all the necessary parameters with your desired values. For example: videoid, text (if applicable), source (if applicable).
4. Copy the full shortcode from notepad and paste it on the “Visual” Editor of your WordPress post/page.
5. Update the post/page.
Let me know how it goes.
-
AuthorPosts
- You must be logged in to reply to this topic.