Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Remove Remaining Spaces: Unlimited text | Event Espresso - Staging Server

Support

Home Forums Event Espresso Premium Remove Remaining Spaces: Unlimited text

Remove Remaining Spaces: Unlimited text

Posted: May 27, 2013 at 4:22 pm

Viewing 5 reply threads


Vanessa Chu

May 27, 2013 at 4:22 pm

Hi, I want to remove the “Remaining Spaces: Unlimited” and “Maximum Spaces: 99999” if there is no space limit entered for an event in the Event Details page. I want the Remaining Spaces and Maximum Spaces to show if someone puts in a limit, but to not show if someone doesn’t. How can I do this? Thanks!


Jonathan Wilson

  • Support Staff

May 27, 2013 at 9:08 pm

In your themes style.css file (or via a Custom CSS plugin) add

.spaces-available { display: none; }

and it will hide it for you.


Vanessa Chu

May 28, 2013 at 3:48 pm

Hi Jonathan, this will remove the spaces available text completely regardless of whether someone puts in a limit or not. I’m looking for a solution that will remove the spaces available text only if someone doesn’t put a limit on spaces. I would think this would require some conditional PHP code? Could you please let me know how I can accomplish this? Thanks!


Josh

May 28, 2013 at 5:29 pm

You are correct, a conditional could be added.

The variable you could use in event_list_display.php template is $reg_limit. You can wrap where it normally displays Available spaces with something like:

if ($reg_limit < 99999) {
// Available spaces code goes here
}


Vanessa Chu

May 28, 2013 at 5:37 pm

Thanks Josh! That worked!


Josh

May 28, 2013 at 6:29 pm

You’re welcome.

Viewing 5 reply threads

The support post ‘Remove Remaining Spaces: Unlimited text’ 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 - Staging Server