Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1126787
    May R
    Participant

    Hello there.

    I’m in the process of setting up Ubermenu. What I’d like to be able to do is this. Once I make my UberMenu, and an item is selected from the Submenu dropdown, I’d like to know how to make a YT video pop up for playing without being redirected to YT, that page or post once that menu item is clicked on.

    For example…Soccer is the subheader…underneath it are dates related to games. Once a date is clicked on, (i.e. Aug. 1st game), the video pops right up from YT, Vimeo…without being redirected anywhere. Kinda like a lightbox image per-say, but having it be a video instead of an image.

    Is there a way to accomplish this by chance?

    #1126943
    Paul R
    Moderator

    Hi May,

    Thanks for writing in!

    Yes, you can add something like this in a raw content element.

    
    <a class="video-lightbox" href="//www.youtube.com/embed/kfVsfOSbJY0" data-options="width: 1080, height: 608">Aug 2 game</a><br>
    <a class="video-lightbox" href="//player.vimeo.com/video/84751465" data-options="width: 1080, height: 608">Aug 3 game</a>
    
    [lightbox selector=".video-lightbox"]
    

    Change href with your youtube or vimeo url

    For more infomation kindly refer to the link below

    https://community.theme.co/kb/shortcode-walkthrough-lightbox/

    Hope that helps.

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