• Resolved nunaroot

    (@nunaroot)


    Hi,

    I want to hide Event registration button in front end if the admin does not fill the “Registration URL:” but show this button if the admin has fill the “Registration URL:”

    Is this possible?

    Regards

    Erneeraq

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • 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

    Thread Starter nunaroot

    (@nunaroot)

    This line of code has errors.

    Regards
    Erneeraq

    Thread Starter nunaroot

    (@nunaroot)

    The button is hidden even if i had written registration url on the event.

    greenpete

    (@greenpete)

    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 5 years 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

    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

    any news ?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Hide Event registration button’ is closed to new replies.