Title: Add 2nd button
Last modified: September 15, 2020

---

# Add 2nd button

 *  Resolved [webdigitale](https://wordpress.org/support/users/webdigitale/)
 * (@webdigitale)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/add-2nd-button/)
 * Hello
    is it possible to add a second button with a different link?

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [Hitesh Makvana](https://wordpress.org/support/users/hiteshmakvana/)
 * (@hiteshmakvana)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/add-2nd-button/#post-13415199)
 * Hi [@webdigitale](https://wordpress.org/support/users/webdigitale/)
 * Where do you want to show second button? Can you please provide more information
   to understand your concern?
 * Thank you
 *  Thread Starter [webdigitale](https://wordpress.org/support/users/webdigitale/)
 * (@webdigitale)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/add-2nd-button/#post-13415879)
 * I need to ad second url button , to buy or registration
 *  [Priya Goenka](https://wordpress.org/support/users/priyagoenka/)
 * (@priyagoenka)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/add-2nd-button/#post-13418935)
 * Hi,
 * This cannot be directly done. It requires customization.
 * Regards
    Priya
 *  Thread Starter [webdigitale](https://wordpress.org/support/users/webdigitale/)
 * (@webdigitale)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/add-2nd-button/#post-13419221)
 * It’s possible to remove slide down menu and make directly button ?
 *  [Priya Goenka](https://wordpress.org/support/users/priyagoenka/)
 * (@priyagoenka)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/add-2nd-button/#post-13433943)
 * Hi [@webdigitale](https://wordpress.org/support/users/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](https://wordpress.org/support/users/webdigitale/)
 * (@webdigitale)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/add-2nd-button/#post-13434722)
 * thanks but it doesn’t work
 * Error thrown
    Call to undefined function get_event_registration_method()
 *  [Hitesh Makvana](https://wordpress.org/support/users/hiteshmakvana/)
 * (@hiteshmakvana)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/add-2nd-button/#post-13516550)
 * Hi [@webdigitale](https://wordpress.org/support/users/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.

 * ![](https://ps.w.org/wp-event-manager/assets/icon-256x256.png?rev=1622826)
 * [WP Event Manager – Events Calendar, Registrations, Sell Tickets with WooCommerce](https://wordpress.org/plugins/wp-event-manager/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-event-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-event-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-event-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-event-manager/reviews/)

 * 7 replies
 * 3 participants
 * Last reply from: [Hitesh Makvana](https://wordpress.org/support/users/hiteshmakvana/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/add-2nd-button/#post-13516550)
 * Status: resolved