Support

Home Forums Event Espresso Premium How to hide "Current Number of Attendees" in closed class

How to hide "Current Number of Attendees" in closed class

Posted: June 13, 2014 at 12:26 pm

Viewing 4 reply threads


Drio LLC

June 13, 2014 at 12:26 pm

My events prompt the following message when a class is full:

“We are sorry but this event has reached the maximum number of attendees! Please check back in the event someone cancels. Current Number of Attendees: x”

I know how to edit the language in Poedit but can I delete the “Current Number of Attendees:” line altogether?


Lorenzo Orlando Caum

  • Support Staff

June 13, 2014 at 1:57 pm

Hi, that is from one of the template files.

Login to your site with an SFTP or FTP client such as FileZilla or Cyberduck. Then browse to this location:

wp-content/plugins/event-espresso/templates

Download a copy of the following files to your computer:

registration_page_display.php
registration_page.php

Then browse to this location using your SFTP or FTP client:

wp-content/uploads/espresso/templates

Then upload those two files that you just downloaded to the folder above.

Now we need to edit the registration_page.php file to remove the quantity for the attendee.

Open it and go to line 243 which has this:

<p class="num_attendees"><?php _e('Current Number of Attendees:', 'event_espresso'); ?> <?php echo $num_attendees ?></p>

Remove the entire line and save changes.


Lorenzo


Drio LLC

June 13, 2014 at 2:17 pm

OK. You say to upload the two files you just downloaded, then edit the file and save….doesn’t it need to be edited THEN uploaded?


Lorenzo Orlando Caum

  • Support Staff

June 13, 2014 at 2:21 pm

Hi,

A modern SFTP or FTP client such as Transmit, FileZilla, or Cyberduck supports editing remotely. You can edit on your computer and then upload if that is easier.

The important part is to get the files out of the core plugin folder and into the wp-content/uploads/espresso/templates folder.

This ensures that your customizations won’t be lost on a software update since these files are in a different location than the plugins folder.


Lorenzo


Drio LLC

June 13, 2014 at 2:22 pm

Got it! Worked like a charm. You’re are the best!

Viewing 4 reply threads

The support post ‘How to hide "Current Number of Attendees" in closed class’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso