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
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?
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:
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
Viewing 2 reply threads
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.
Support forum for Event Espresso 3 and Event Espresso 4.