archetyped / simple-lightbox-extensions

Feedback & Support for Simple Lightbox Extensions
https://archetyped.com/tools/simple-lightbox/
2 stars 3 forks source link

[Video / Issue]: Activate Anywhere #51

Closed psasso closed 8 years ago

psasso commented 8 years ago

Description of issue

1.) Can't get SLB YouTube Video to activate from a menu item: http://lightupyourholidays.us/ Click in 'Watch "Before & After"

I've install this PHP:

<?php $content = '<a href="https://www.youtube.com/watch?v=DC7OF9SSsWM"></a>';
if ( function_exists('slb_activate') )
    $content = slb_activate($content);
echo $content; ?>

2.) Is there anyway I can make the video autoplay?

Details

archetyped commented 8 years ago

Hi, slb_activate() is a template tag, which means it is used in your theme's template files to manually activate links. Menu activation is planned, but in the meantime, you can save a menu's output to a variable by setting the menu's echo option to false and then passing it through slb_activate() as per your original example.

See WordPress' documentation for full details on using wp_nav_menu() for more details.

Autoplay

The video add-on fully supports YouTube's video player parameters, allowing you to customize the experience when the video is loaded in the lightbox. For example, by using the autoplay parameter, videos should start playing automatically once loaded in the lightbox.

This information was also included in my reply to your previous email, so you may want to check your spam folder if you did not receive that email.