• Resolved neneb1972

    (@neneb1972)


    When you create an event and fill in the form (video url), in the event details appear a WATCH VIDEO button that starts a pop-up. There is a way to remove the code that starts lightbox/popup and let the browser open the URL of the video in another page?

    Thanks
    IB

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @neneb1972

    You need to override the templates file content-single-event_listing.php and remove the default classes which is assigned to the button

    <button id="event-youtube-button" data-modal-id="wpem-youtube-modal-popup" class="wpem-theme-button wpem-modal-button"><?php _e('Watch video', 'wp-event-manager'); ?></button>

    and remove this button and apply a custom link.

    Regards,
    Priya

    Thread Starter neneb1972

    (@neneb1972)

    Hi,
    the button is useful (so we don’t want to remove it) but we would like to associate the button to a generic URL (no popup)

    In the content-single-event_listing.php we have to remove the following code block.
    Please can you tell us which code we need to replace?

    Thanks
    IB

    ——————————————————————–
    <?php if (get_organizer_youtube()) : ?>
    <div class=”clearfix”> </div>
    <button id=”event-youtube-button” data-modal-id=”wpem-youtube-modal-popup” class=”wpem-theme-button wpem-modal-button”><?php _e(‘Guarda il video’, ‘wp-event-manager’); ?></button>
    <div id=”wpem-youtube-modal-popup” class=”wpem-modal” role=”dialog” aria-labelledby=”<?php _e(‘Guarda il video’, ‘wp-event-manager’); ?>”>
    <div class=”wpem-modal-content-wrapper”>
    <div class=”wpem-modal-header”>
    <div class=”wpem-modal-header-title”><h3 class=”wpem-modal-header-title-text”><?php _e(‘Guarda il video’, ‘wp-event-manager’); ?></h3></div>
    <div class=”wpem-modal-header-close”>x</div>
    </div>
    <div class=”wpem-modal-content”>
    <?php echo wp_oembed_get(get_organizer_youtube(), array(‘autoplay’ => 1, ‘rel’ => 0)); ?>
    </div>
    </div>
    <div class=”wpem-modal-overlay”></div>
    </div>
    <div class=”clearfix”> </div>
    <?php endif; ?>
    ——————————–

    Hi @neneb1972

    You can use get_organizer_video( $post); to display video URL

    Please use <a href"<?php echo get_organizer_video();?>" >VIDEO LINK</a> This will out put video link at frontend.

    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘watch video / video url’ is closed to new replies.