Support

Home Forums Event Espresso Premium Customising the layout

Customising the layout

Posted: February 22, 2018 at 3:24 am


TARA

February 22, 2018 at 3:24 am

Hi,

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.


Josh

  • Support Staff

February 22, 2018 at 10:39 am

Hi Tara,

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.


TARA

February 25, 2018 at 4:36 am

Thanks that fixed half my problems and the individual events are mostly sorted. However how do i control the layout of content created via shortcodes?

Eg: http://www.meditateinireland.com/2018/whats-on-dublin/classes/.


Tony

  • Support Staff

February 26, 2018 at 5:24 am

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.

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.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Tony 1 year, 4 months ago ago

Topic Tags

Notifications

This topic is: resolved
Do NOT follow this link or you will be banned from the site!