I need to place a template tag on a custom page that will list up to the latest three events showing only the event name, the date/time and register button.
You could combine the body class from the page along with an ESPRESSO_EVENTS shortcode. Then combine that body class with certain elements from Event Espresso along with display none.
This tutorial has an overview of how to find the CSS class or IDs of Event Espresso elements:
That will allow you to hide those elements on just this page and they can easily be reversed. Additionally, you won’t need to make any changes to any templates.
Thanks Lorenzo. That is the solution I am considering, I thought there may be a different way of handling this–I guess I’m such a non-coder after all. Will let you know if I need anything further
Hi, that is actually easier than trying to edit the template files. Also, if you edit the template files, then those will apply sitewide instead of just to the specific page that you are wanting to show 3 events on.
—
Lorenzo
Viewing 3 reply threads
The support post ‘EE4 Template part’ 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.