Support

Home Forums Event Espresso Premium EE4 – single event template

EE4 – single event template

Posted: December 15, 2014 at 4:27 pm


dario de caneva

December 15, 2014 at 4:27 pm

Hi, how can i force to display any single events not as the normal archive pages?
Is it possible to use a custom template?
I created an event page with the [ESPRESSO_EVENTS] shorcode, when i click on the “View details” button I would like the event to be shown not as an archive page (comment, sidebar …)
Thanks


dario de caneva

December 15, 2014 at 5:02 pm

I manage to fix it copying the “single-espresso_events.php in my theme folder.
Then i remove these lines:
if ( comments_open() || get_comments_number() ) {
comments_template();
}
Cause i don’t want any comment on the events.
Is this the right way or it can cause some error?


Lorenzo Orlando Caum

  • Support Staff

December 15, 2014 at 7:14 pm

Hi Dario,

You are off to a good start but keep in mind that the starter templates are for the Twenty Fourteen theme so the styling may appear a little strange unless you are using a default WP theme.

See these steps for getting a single event template setup with your theme:

https://gist.github.com/lorenzocaum/16aac08f099d7c154f04

You’ll use an existing theme template, then replace the call for the content in that file.

From there, you can remove or comment out the comments code in the file single-espresso_events.php file.


Lorenzo

The support post ‘EE4 – single event template’ 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