Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1287705
    tpinkus
    Participant

    Ok, here’s what’s happening.

    I created a shortcode for a lightbox to popup a video. When I click save and got to the frontpage to test, it works as expected once maybe twice. When I look again or ask someone else to test/check, when clicked it goes to the URL of the video.

    Yes, I have the latest version of X theme.

    Here is my lightbox shortcode:

    [image class="deltamedia" src="/wp-content/uploads/video-play-button.jpg" link="true" href="//fast.wistia.net/embed/iframe/kvml4ykq2v?autoPlay=true" lightbox_video="true"]
    [lightbox selector=".deltamedia"]

    See in action here: http://deltamediacorp.com — is on the 3rd slide

    #1288066
    Rad
    Moderator

    Hi there,

    Thanks for posting in.

    Ah, it’s within the slider. It usually happens since lightbox library is loaded first even before the slides load. Library should be loaded only after the slide is loaded. And the result is random depending on loading speed, hence, it may work randomly too.

    Try adding this shortcode outside the slider,

    [lightbox selector=".deltamedia"]

    You can add it on the last section of your page.

    Thanks!

    #1290198
    tpinkus
    Participant

    That seemed to work. THANK YOU 🙂

    #1290214
    Joao
    Moderator

    Glad to hear it,

    Joao

  • <script> jQuery(function($){ $("#no-reply-1287705 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>