Support » Plugin: WP Event Manager » Add 2nd button

  • Resolved webdigitale

    (@webdigitale)


    Hello
    is it possible to add a second button with a different link?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Hitesh Makvana

    (@hiteshmakvana)

    Hi @webdigitale

    Where do you want to show second button? Can you please provide more information to understand your concern?

    Thank you

    Thread Starter webdigitale

    (@webdigitale)

    I need to ad second url button , to buy or registration

    Plugin Contributor Priya Goenka

    (@priyagoenka)

    Hi,

    This cannot be directly done. It requires customization.

    Regards
    Priya

    Thread Starter webdigitale

    (@webdigitale)

    It’s possible to remove slide down menu and make directly button ?

    Plugin Contributor Priya Goenka

    (@priyagoenka)

    Hi @webdigitale

    Add the following code in your functions.php file to directly use it as a button:

    <?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 ); ?>
    
                 	<div class="wpem-event-sidebar-button wpem-registration-event-button">
    
                          	<a href="<?php echo esc_url( $register->url ); ?>" class="wpem-theme-button" rel="nofollow"><?php _e( 'Register for event', 'wp-event-manager' ); ?>
    
                          	</a>
    
                 	</div>
    
                 	<?php do_action( 'event_registration_end', $register ); ?>
    
         	</div>
    
         	<?php endif; ?>
    
    <?php endif; ?>
    

    Regards,
    Priya

    Thread Starter webdigitale

    (@webdigitale)

    thanks but it doesn’t work

    Error thrown
    Call to undefined function get_event_registration_method()

    Plugin Author Hitesh Makvana

    (@hiteshmakvana)

    Hi @webdigitale

    get_event_registration_method function is inside the core files of the plugin and if you are using the latest version of WP Event Manager then it should work.

    Thank you

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Add 2nd button’ is closed to new replies.