• Resolved azizssd

    (@azizssd)


    Hello,

    How to link directly to the registration url without displaying a dropdown first when clicking the registration button?

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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.
    Thread Starter azizssd

    (@azizssd)

    Thanks for the help @priyagoenka, it worked.

    Hi @azizssd

    It has been our pleasure to help you. We value your opinion, could you be willing to take a few minutes to leave us a review?

    You can click this link to leave us a review: https://www.ads-software.com/support/plugin/wp-event-manager/reviews/.

    Regards,
    Priya

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Direct link when click registration Button’ is closed to new replies.