Support

Home Forums Event Espresso Premium Adding spaces available on the event listing page

Adding spaces available on the event listing page

Posted: July 10, 2018 at 1:55 am


Andy Buck

July 10, 2018 at 1:55 am

Hi,

I would like to add spaces available amount on this page
http://etmcourse.com/course-dates/

It would be on every event right below the grey heading for each one.

It would display

Spaces Still Available: 15
( 15 for example )

Can you please let me know which template would I have to modify and which variable would I have to use, I can custom code the template, just not sure where to do it from.

PS..
I would also like to add the same to these pages as well
http://etmcourse.com/events/etm-course-november-16th-18th-2018-perth/
Right below the grey title.. in the table..
If you can please also point me in the right direction, which template and what variable would store that value.

Many thanks for your help in advance

We are using Event Expresso 4

Regards,
Alex


Josh

  • Support Staff

July 10, 2018 at 7:00 am

Hi Andy,

Since there are hook points within the templates, you don’t need to edit the template files to add this. Instead, you can add some code to your theme’s functions.php file or into a site plugin. Here’s a link to some example code that shows the hook and the helper method:

https://gist.github.com/joshfeck/56f30f18ae87af1919c3c462618ee2de

You can add the above to a functions plugin or into your WordPress theme’s functions.php file. We recommend using a child theme if you add to the functions.php file.


Andy Buck

July 10, 2018 at 7:19 am

Thank you very much, I will give this a try

You must be logged in to reply to this support post. Sign In or Register for an Account

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: publish

Updated by  Andy Buck 1 week, 5 days ago ago

Topic Tags

Notifications

This topic is:
pending
Do NOT follow this link or you will be banned from the site!