• Resolved waterhaul

    (@waterhaul)


    Hi,
    I’d like to create a button that loads the pop up player.

    The code i use for the button is
    <p>Watch</p>

    How can i also add your class=”wp-video-popup” ?

    Many thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author David Vongries

    (@davidvongries)

    Hey there,

    I’m not sure if I understand the question and unfortunately, your code got rendered.

    Buttons may be defined by other CSS classes of your theme (or the block editor, in case you’re useing it).

    if you can manipulate the code, simply add a class to your button/element like on our example:

    <a href="#" class="wp-video-popup button">Play Video</a>

    Hope that helps.

    Thread Starter waterhaul

    (@waterhaul)

    To create a button, I have to already use a css class, so my question is, is it possible to combine 2 classes so this code opens the youtube player too?

    <a class="button" href="https://waterhaul.co/product/fitzroy-prescription/">Prescription Orders</a>

    Plugin Author David Vongries

    (@davidvongries)

    That would work, you can simply add 2 classes like this:

    <a class="button wp-video-popup" href="https://waterhaul.co/product/fitzroy-prescription/">Prescription Orders</a>

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Button to popup’ is closed to new replies.