Hi @nunaroot,
Currently, we haven’t set up this type of restriction on the button but you can do it by overriding template file called event-registration.php to your theme side by following this doc(https://wp-eventmanager.com/template-files-override/)
You can set restricition in the template file change the first line like this:
if ( $register = get_event_registration_method() && (isset($register->url)||isset($register->email) ) ) :
This will be improved in the next version.
Thank you
This line of code has errors.
Regards
Erneeraq
The button is hidden even if i had written registration url on the event.
I too would like to remove this button, but as nunaroot says, your work around causes erros and drastically damages the look of the page as a whole.
Please can you specify more clearly which line to replace?
-
This reply was modified 6 years, 1 month ago by
greenpete.
I am too having the same issue, I have also been trying to just change it to a link, but no. I managed to change the wording to book now, however i would just prefer to have it for the use of an external link so can easily be changed in the dashboard for my clients
ok
(@gotoco)
hello, I was able to solve this as follows:
**Locate this file**, public_html/wp-content/plugins/wp-event-manager/templates/event-registration.php
**Delete this line:**
<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>
I hope that helps others!
Thanks
Hello,
I too would like to hide the register button on specific events on the front end. If I add this code above will the registration button be removed from ALL events?
Also, how do you “locate file”? Consider me new… please be specific. LOL. And, can I simply hide the code somehow as opposed to deleting it? Watch it break and I can’t get it back.
I have seen many responses to this inquiry as “This will be improved in the next version.” That was well over a year ago. Anybody know when this will actually be updated?
Many thanks all.
_teunis
Bumping as I’m wondering the same. I’d like to have the button ONLY appear if registration details are entered, and hidden or greyed out if not