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!
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!
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
}
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.
Support forum for Event Espresso 3 and Event Espresso 4.