I’m trying to customise the layout of the events list (and later the events themselves) and I’m struggling to work out which template files control which sections of the page as they all seem to reference each other.
Can you tell me how I’d archive this layout:
With the featured image on the left and the title and content on the right and without just hacking it into place with CSS. I’d ideally like to just reference the EE sections and put them into my own template (like using short codes) so i have maximum flexibility.
The layout is actually controlled by your theme’s archive.php template (if no archive.php template in your WP theme, then WP will follow the template hierarchy.
Since Event Espresso events are WordPress custom post types you can make a copy of your theme’s archive.php template, rename the copy to be archive-espresso_events.php, and use standard WordPress template tags to output the post title, excerpt, permalink, featured image, and so on.
That shortcode uses the template file /event-espresso-core-reg/public/content-espresso_events-shortcode.php
If you copy that template to your themes root directory you can modify the output there. Note the instructions in the template file, EE inject the event details into the_content() calls so you need to follow the instructions for using the filter in the template if you want to take over the output yourself.
Viewing 3 reply threads
The support post ‘Customising the layout’ 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.