Posted: July 21, 2020 at 2:52 pm
Hi I have a page where I call [ESPRESSO_EVENTS].
I’d like to know what the best way to edit the content and formatting of this list of events is (I know there is some options in settings but I’m looking for more customization and want to know what the best method is). For example one edit I want to make is to remove the heading ‘Upcoming events’ and change the view details button to take the user to the event page.
Also would like to edit specific event pages, would I need to edit my single post php file for that?
Whilst I’m sure you have other customizations you want to make, the above can be done without modifying templates using a snippet like this:
However, to answer your question, you can copy the templates loaded for various sections into your theme’s root directory (preferably a Child Theme) and edit them there. EE will use those template in place of the defaults when needed.
(Take note of the comments at the top of those files as they are important)
Copy your theme’s
To your theme’s functions.php file to tell EE to continue to inject them for you.
We have some details on this here: https://gist.github.com/lorenzocaum/16aac08f099d7c154f04