• Hi

    I would like to use this plugin but rather than just add the shortcode to plain text, I would like to add it to a button. The button shortcode is [gdlr_button href=”https://www.youtube.com/watch?v=2lFTLVu0ZOw” target=”_self” size=”large” background=”#159b84″ color=”#ffffff”]WATCH VIDEO[/gdlr_button] and the shortcode for the video is [video_lightbox_youtube video_id=”2lFTLVu0ZOw” width=”640″ height=”480″].

    Can you suggest how to merge these 2 so that I get the video to work when the button is clicked?

    Thanks

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

    (@mbrsolution)

    So you want to use a button image instead of a video thumbnail image? Here is the sample code.

    [video_lightbox_youtube video_id="G7z74BvLWUg" width="640" height="480" anchor="http://www.example.com/images/youtube-thumb.jpg"]

    Is the above correct?

    Thread Starter mcrone

    (@mcrone)

    Hi

    Thanks for the reply, yes I would like to use a standard button from the shortcode options on my website rather than a video thumbnail.

    I use this shortcode to add a button to my website but I am not sure how to configure this for the video lightbox – [gdlr_button href=”https://www.youtube.com/watch?v=2lFTLVu0ZOw” target=”_self” size=”large” background=”#159b84″ color=”#ffffff”]WATCH VIDEO[/gdlr_button]

    Thanks

    Plugin Support mbrsolution

    (@mbrsolution)

    Okay, try the following. I am not sure if this will work though.

    Replace the following URL from the shortcode I shared above.

    http://www.example.com/images/youtube-thumb.jpg

    Add a button image instead, for example.


    http://www.example.com/images/your-button-image.jpg

    Thread Starter mcrone

    (@mcrone)

    Hi

    Thanks again but sadly no it did not work

    Cheers

    Plugin Support mbrsolution

    (@mbrsolution)

    Can you share a screen campture of what you see? Also share the shortcode you are using?

    Regards

    Thread Starter mcrone

    (@mcrone)

    Hi

    Apologies for the delay, I have create a test page to show how the button will look – http://www.eight-interactive.com/test-home/.

    If you click the Watch Video button I would then like the video to open in the lightbox?

    Cheers!

    Plugin Support mbrsolution

    (@mbrsolution)

    Okay try the following sample code. Replace the YouTube video with your own video and the image with your button image.

    
    <a href="https://www.youtube.com/watch?v=G7z74BvLWUg" rel="wp-videolightbox"
    title=""><img src="http://example.com/images/thumbnails/youtube.jpg"
    alt="YouTube" width="60" /></a>
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Add Shortcode to Button’ is closed to new replies.