Title: Hide Event registration button
Last modified: September 27, 2019

---

# Hide Event registration button

 *  Resolved [nunaroot](https://wordpress.org/support/users/nunaroot/)
 * (@nunaroot)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/hide-event-registration-button/)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhide-event-registration-button%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Hitesh Makvana](https://wordpress.org/support/users/hiteshmakvana/)
 * (@hiteshmakvana)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/hide-event-registration-button/#post-11977141)
 * Hi [@nunaroot](https://wordpress.org/support/users/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/](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](https://wordpress.org/support/users/nunaroot/)
 * (@nunaroot)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/hide-event-registration-button/#post-11994069)
 * This line of code has errors.
 * Regards
    Erneeraq
 *  Thread Starter [nunaroot](https://wordpress.org/support/users/nunaroot/)
 * (@nunaroot)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/hide-event-registration-button/#post-11994200)
 * The button is hidden even if i had written registration url on the event.
 *  [greenpete](https://wordpress.org/support/users/greenpete/)
 * (@greenpete)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/hide-event-registration-button/#post-12529121)
 * 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, 2 months ago by [greenpete](https://wordpress.org/support/users/greenpete/).
 *  [testtube](https://wordpress.org/support/users/testtube/)
 * (@testtube)
 * [6 years ago](https://wordpress.org/support/topic/hide-event-registration-button/#post-12778404)
 * 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](https://wordpress.org/support/users/gotoco/)
 * (@gotoco)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/hide-event-registration-button/#post-13593746)
 * 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
 *  [teunisvorsteveld](https://wordpress.org/support/users/teunisvorsteveld/)
 * (@teunisvorsteveld)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/hide-event-registration-button/#post-14319786)
 * 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
 *  [rpwordp](https://wordpress.org/support/users/rpwordp/)
 * (@rpwordp)
 * [5 years ago](https://wordpress.org/support/topic/hide-event-registration-button/#post-14452310)
 * 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
 *  [cr0co](https://wordpress.org/support/users/cr0co/)
 * (@cr0co)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/hide-event-registration-button/#post-14612061)
 * any news ?

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

The topic ‘Hide Event registration 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/)

 * 9 replies
 * 8 participants
 * Last reply from: [cr0co](https://wordpress.org/support/users/cr0co/)
 * Last activity: [4 years, 10 months ago](https://wordpress.org/support/topic/hide-event-registration-button/#post-14612061)
 * Status: resolved