Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #14816

    Hi there,

    May I please ask you how I can add a button via a shortcode and have that button link to a YouTube video that opens in a lightbox? I tried to add rel=”prettyphoto” and rel=”lightbox” but those don’t seem to work.

    Thanks much,

    Peter

    #84986

    Hello,

    Lightbox is not working on avia button shortcode but you can imitate the button shortcode with this code.

    <a href="http://youtu.be/GZVKnsWwtT8" class="avia-button light custom large" style="background-color:#cc0000;border-color:#000000" rel="lightbox"><span class="avia-download">Youtube</span></a>

    Just change the background color and border.

    class="avia-button light custom large"

    The line above means a large button with white font.

    <span class="avia-download">Youtube</span></a>

    This line will include a “download icon” beside the font. There are several icons that you can choose. If you don’t want any icon just replace avia-download with avia.

    Regards,

    Ismael

    #84987

    It worked like a charm, thanks so much Ismael :-)

    #84988

    Hey peezar,

    Glad that I could help. :)

    Cheers,

    Ismael

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Using Button Shortcode to Open a Video in a Lightbox’ is closed to new replies.