Title: Using the plugin via HTML code, not shortcode
Last modified: November 12, 2017

---

# Using the plugin via HTML code, not shortcode

 *  [BenRacicot](https://wordpress.org/support/users/benracicot/)
 * (@benracicot)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fusing-the-plugin-via-html-code-not-shortcode%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/using-the-plugin-via-html-code-not-shortcode/#post-9675811)
 * 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
 *  Thread Starter [BenRacicot](https://wordpress.org/support/users/benracicot/)
 * (@benracicot)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/using-the-plugin-via-html-code-not-shortcode/#post-9685581)
 * 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 8 years, 6 months ago by [BenRacicot](https://wordpress.org/support/users/benracicot/).
 *  Plugin Support [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/using-the-plugin-via-html-code-not-shortcode/#post-9687065)
 * Try the following [documentation](https://www.tipsandtricks-hq.com/wp-content/uploads/docs/wp-video-lightbox-plugin-usage-instructions.pdf).
   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.

 * ![](https://ps.w.org/wp-video-lightbox/assets/icon-128x128.png?rev=981252)
 * [WP Video Lightbox](https://wordpress.org/plugins/wp-video-lightbox/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-video-lightbox/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-video-lightbox/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-video-lightbox/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-video-lightbox/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-video-lightbox/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/using-the-plugin-via-html-code-not-shortcode/#post-9687065)
 * Status: not resolved