Support

Home Forums Event Espresso Premium EE Stock Messages (Registration Full)

EE Stock Messages (Registration Full)

Posted: January 13, 2016 at 1:49 pm


Teresa Reardon

January 13, 2016 at 1:49 pm

This is the message that Event Espresso posts when the event is full. Is there a way that we can customize this message?

“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: 85”

We would like to delete the “current number of attendees” part. Also, we would like to edit it to say “please check back in the event that someone cancels. Please contact the Faith Camp coordinators via email to secure your spot on our waiting list.”

How can I go about changing this message? Thank you in advanced for your prompt and through support!


Tony

  • Support Staff

January 14, 2016 at 1:51 am

Hi Teresa,

The easiest way to do this is to hide the number of attendee using some CSS:

.espresso_event_full .num_attendees {
    display: none;
}

We recommend using either the My Custom CSS or Reaktiv CSS Builder plugins to add custom styles such as these.

Then translate the rest of the text using the custom function from here:

https://eventespresso.com/wiki/how-to-change-wording-with-poedit/

For example:

function mycustom_filter_gettext( $translated, $original, $domain ) {
 
    // This is an array of original strings
    // and what they should be replaced with
    $strings = array(
        'Please check back in the event someone cancels.' => 'Please check back in the event that someone cancels. Please contact the Faith Camp coordinators via email to secure your spot on our waiting list.',
        // Add some more strings here
    );
 
    // See if the current string is in the $strings array
    // If so, replace its translation
    if ( isset( $strings[$original] ) ) {
        // This accomplishes the same thing as __()
        // but without running it through the filter again
        $translations = get_translations_for_domain( $domain );
        $translated = $translations->translate( $strings[$original] );
    }
 
    return $translated;
}
 
add_filter( 'gettext', 'mycustom_filter_gettext', 10, 3 );

You can add that to either your themes functions.php file, or preferably a Site Specific Plugin.


Teresa Reardon

January 20, 2016 at 2:37 pm

Hi Tony,
Thank you for your prompt response! Our company is a small non-profit and we do not have an IT guy. And I don’t know CSS. Are there any work arounds?

Thank you,
Teresa


Lorenzo Orlando Caum

  • Support Staff

January 20, 2016 at 4:44 pm

Hi Teresa,

Go to your WordPress dashboard (WP-admin).

Then go to Plugins –> Add New. Search for Reaktiv Css Builder.

You should see it in the search result. Click to install it on your site.

Afterwards, go to Appearance –> CSS Builder. Then copy the CSS that Tony shared earlier into the content area and then click to save changes.

Here is a link to Tony’s earlier reply:

https://eventespresso.com/topic/ee-stock-messages-registration-full/#post-187980


Lorenzo

The support post ‘EE Stock Messages (Registration Full)’ 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