Support

Home Forums Event Espresso Premium Editing the single event page template (EE4)

Editing the single event page template (EE4)

Posted: January 29, 2018 at 3:58 am


Createful

January 29, 2018 at 3:58 am

Hi, I’m using EE4 and would like some help editing the single event page template. I’ve got the plugin (and a few addons) installed and running successfully. I’ve added a test event and this displays ok using the standard template. I’ve created a new template file called single-espresso_events.php and this displays eveything I’d expect it to. However, I’d like to separate some of the content out into different columns on the page.

Creating and handling the columns is not a problem (as I’m using the Foundation framework), but separating the content is where I’m stuck.

Right now, I’m using php the_content(); to display all the event details, but this just spits them out in one block. I’d like to have one column that just shows the event description and location, and the ticket selector and event date and register button to display in a separate section.

I’ve checked this page for template tags that I can use, but don’t see one for the description for example.

So are there separate tags for the individiaul event fields? Thanks


Tony

  • Support Staff

January 29, 2018 at 7:52 am

Hi there,

It depends on what fields you want to pull in.

When you use a single-espresso_events.php template file EE should stop injecting all of the details into the_content() unless you’ve added a filterto tell it to continue to do so, which means you can call the post content using the_content().

Or you can use the espresso_event_content_or_excerpt() template tag.

If you take a look at the plugins files, event-espresso-core-reg\public\Espresso_Arabica_2014 you’ll find a tewntyfourteen child theme that shows you how you can pull each of the event details into their own templates using various EE template tags.


Createful

January 30, 2018 at 2:26 am

Thanks Tony, that Arabica theme contains everything I needed. I think for other users it might be helpful if you inlcuded a page on your documentation that listed tags/shortcodes such as:

  • espresso_list_of_event_dates()
  • espresso_event_categories()
  • espresso_event_content_or_excerpt()

As I’ve not seen these anywhere else.
Thanks


Tony

  • Support Staff

January 30, 2018 at 9:56 am

You’re most welcome and thank you for the feedback, I’ve noted to update the above page so that it includes all of the currently available template tags.

The support post ‘Editing the single event page template (EE4)’ 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.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Tony 6 months, 3 weeks ago ago

Topic Tags

Notifications

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