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
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