Hi @azizssd
Please replace the existing code with below code in this file: wp-content/plugins/wp-event-manager/templates/event-registration.php
<?php if ( $register = get_event_registration_method() ) :
wp_enqueue_script( 'wp-event-manager-event-registration' );
if($register->type) : ?>
<div class="event_registration registration">
<?php do_action( 'event_registration_start', $register ); ?>
<?php if(isset($register->type) && $register->type == 'url' && isset($register->url) && !empty($register->url) ) : ?>
<div class="wpem-event-sidebar-button wpem-registration-event-button">
<a class="wpem-theme-button" href="<?php echo $register->url; ?>" target="_blank"><?php _e( 'Register for event', 'wp-event-manager' ); ?></a>
</div>
<?php else : ?>
<div class="wpem-event-sidebar-button wpem-registration-event-button">
<button type="button" class="registration_button wpem-theme-button" value="<?php _e( 'Register for event', 'wp-event-manager' ); ?>" ><?php _e( 'Register for event', 'wp-event-manager' ); ?></button>
</div>
<div class="registration_details wpem-register-event-form">
<?php
/**
* event_manager_registration_details_email or event_manager_registration_details_url hook
*/
do_action( 'event_manager_registration_details_' . $register->type, $register );
?>
</div>
<?php endif; ?>
<?php do_action( 'event_registration_end', $register ); ?>
</div>
<?php endif; ?>
<?php endif; ?>
Regards,
Priya
-
This reply was modified 3 years, 11 months ago by Priya Goenka.