Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1422663

    Kobber
    Participant

    Hi,

    If you look at this page – the button below the headline (and the text), is it possible to link that button to a YouTube video, so that when people clicks on it, it will open a pop-up with the video?

    #1423004

    Paul R
    Moderator

    Hi,

    Instead of using a button element, you can use this code in your text element instead.

    
    <a class="x-btn x-btn-small" href="https://www.youtube.com/embed/uGtSYLzpsw0?rel=0&showinfo=0" data-options="thumbnail: '', width: 1080, height: 608""><i class="x-icon mvn mln mrs x-icon-youtube-play" data-x-icon="" aria-hidden="true"></i>Se video om Lydstudiet.com</a>
    

    Hope that helps

    #1423208

    Kobber
    Participant

    Ok. Great, but I really don’t want to lead people away from the page. Can’t it just be a pop-up? And not in full screen?

    #1423449

    Joao
    Moderator

    Hi There,

    You can use the lightbox.

    You can use the following code on a RAW Content Element in Cornerstone.

    [button class="btn-lightbox" href="http://video-link.mp4" title="A Video" lightbox_video="true"][icon type="play-circle"]Watch Our Demo[lightbox selector=".btn-lightbox"][/button]
    

    You may also refer to this link for some guide:
    https://community.theme.co//kb/shortcode-walkthrough-lightbox/

    Hope this helps.