Support

Home Forums Event Espresso Premium Remove "Available Spaces" from Register page

Remove "Available Spaces" from Register page

Posted: August 4, 2012 at 8:06 pm

Viewing 9 reply threads


khiukka

August 4, 2012 at 8:06 pm

Hello,
I would like to remove the section on the registration page that says: “Available Spaces: Unlimited”

I don’t want to show that information at all. How can I remove it?
Thank you


Josh

  • Support Staff

August 6, 2012 at 8:15 am

Hello,

If the WordPress theme that you have installed has a custom css section in the theme options, you can copy this code there:

p.spaces-available {display:none;}

Some themes also have a custom CSS file or instructions on how to create a child theme. Check the WP theme’s documentation for this info.

Alternatively, you could use the my custom CSS plugin plugin to make the above change.


tooedge

September 5, 2012 at 4:11 am

Is there a quick way we could rename “available spaces” to “available space(s)”.

It will show “1 available spaces” if there balance space is 1.

Thanks in advance ๐Ÿ™‚


Dean

September 5, 2012 at 4:21 am

Hi Tooedge,

You can edit the file event_list_display.php (event-espresso/templates/) around line 106.

It doesn’t seem to work if you move the file to the custom folder so as with any core file change you need to know that it will revert back on update and its at your own risk.


tooedge

September 5, 2012 at 4:29 am

Hi,

Thanks for the quick reply and advise on future updates..

I have tried updating but it still shows “1 available spaces” on the site..

Am I updating the wrong thing?

//Social media buttons
do_action('espresso_social_display_buttons', $event_id);

$num_attendees = get_number_of_attendees_reg_limit($event_id, 'num_attendees'); //Get the number of attendees. Please visit https://eventespresso.com/forums/?p=247 for available parameters for the get_number_of_attendees_reg_limit() function.
if ($num_attendees >= $reg_limit) {
    ?>
    <p id="available_spaces-"> 

        &lt;p id=&quot;register_link-" class="register-link-footer"&gt;&lt;a class=&quot;a_register_link&quot; id=&quot;a_register_link-" href="" title=""&gt;</a>
                    &lt;p id=&quot;available_spaces-" class="spaces-available"&gt; 
        &lt;?php
    }

    /**

Thanks…


tooedge

September 5, 2012 at 4:34 am

I actually need to change “spaces” to “space(s)” on the registration form…
enter image description here


Chris Reynolds

  • Support Staff

September 5, 2012 at 8:37 am

The simplest way of doing this is editing the language files and defining your WP_LANG in wp-config.php to be en_US. Otherwise, you may need to hack core to change that. In 3.2 I think we do a better job of plural forms (at least, when I asked our lead developer if we were using plural forms, he said yes, and there are no plural forms whatsoever in 3.1.x).


tooedge

September 5, 2012 at 9:36 am

Thanks for your reply and suggestion Chris..

Tried using langs but still does not work..

Any other suggestions?


tooedge

September 19, 2012 at 2:47 am

Hi guys,

Is there anyone here that could kindly assist on this matter…

Seems silly that it shows 1 Available SPACES…

I have even tried WP_Lang at WP-Config but without luck.. ๐Ÿ™

Any help is greatly appreciated..

Thanks..


Chris Reynolds

  • Support Staff

September 21, 2012 at 2:49 pm

Did you also edit the language file after changing your WP_LANG?
You need to make sure the language file is actually being recognized, which it may not be if WordPress doesn’t realize you are using language files. You may also need to add a /languages/ folder in your /wp-content directory so WordPress understands that you are using localized files. Then edit the event_espresso-en_US.po file in Poedit or a text editor, changing the “Available Spaces” to whatever you want it to be instead (I don’t recommend using a text editor and doing it by hand — to easy to break it and make it unusable. Better to just use Poedit).

  • This reply was modified 12 years, 2 months ago by Chris Reynolds. Reason: added more info
Viewing 9 reply threads

The support post ‘Remove "Available Spaces" from Register page’ 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