Support » Plugin: WP Video Lightbox » Using the plugin via HTML code, not shortcode

  • Hello,

    I’d like to know if this plugin can be used within template code? There doe not seem to be an answer that I can find on this plugin’s page.

    Perhaps within an <a> tag? I’d like to avoid the use of do_shortcode if possible.

    Thanks!

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support mbrsolution

    (@mbrsolution)

    Hi, someone in the forum provided the following solution.

    <?php echo do_shortcode('[video_lightbox_youtube video_id="" width="640" height="480" alt="alt text for the image" auto_thumb="1"]
    ');?>

    Does the above help you?

    Regards

    I think it helps but how do I set that up on an <a href=""> for when someone clicks a link?

    Like

    <a routerLink="<?php echo do_shortcode('[video_lightbox_youtube video_id="" width="640" height="480" alt="alt" auto_thumb="1"]
    ');?>">Pop up video</a>
    • This reply was modified 6 months, 1 week ago by  BenRacicot.
    Plugin Support mbrsolution

    (@mbrsolution)

    Try the following documentation. This will show you how to use a text link.

    Let me know if you need more help.

    Kind regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Using the plugin via HTML code, not shortcode’ is closed to new replies.