Hi @webdigitale
Where do you want to show second button? Can you please provide more information to understand your concern?
Thank you
I need to ad second url button , to buy or registration
Hi,
This cannot be directly done. It requires customization.
Regards
Priya
It’s possible to remove slide down menu and make directly button ?
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
thanks but it doesn’t work
Error thrown
Call to undefined function get_event_registration_method()
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