Support

Home Forums Event Espresso Premium Template Customization (3)

Template Customization (3)

Posted: August 16, 2018 at 4:30 pm

Viewing 7 reply threads


Atma

August 16, 2018 at 4:30 pm

Hi,

I found the documentation https://eventespresso.com/wiki/put-custom-templates/
But if I install the Core Plugin, there is no folder event-espresso/templates. Instead I find the folder event-espresso-core-reg with folder templates inside.

How find I the template-files, so that I can customize them, or add other sections in there?

Best regards,
Daniela


Tony

  • Support Staff

August 17, 2018 at 2:52 am

Hi Daniela,

I found the documentation https://eventespresso.com/wiki/put-custom-templates/

That documentation is for EE3, based on this:

But if I install the Core Plugin, there is no folder event-espresso/templates. Instead I find the folder event-espresso-core-reg with folder templates inside.

You are using EE4.

EE3 had its own templating system which was completely separate from the sites theme, with EE4 the events are custom post types, so a lot of the output is controlled by your sites theme although EE4 does inject its content into the_content filters and has templates you can use to customize those individual sections (or the full output).

How find I the template-files, so that I can customize them, or add other sections in there?

In short, you create custom templates for the EE posts in your theme, how you do that and what you use depends on what you want to customize. We have an example child theme based on twentyfoureen in /event-espresso-core-reg/public/Espresso_Arabica_2014/

That shows you how you can create custom templates but as its based on 2014, its an example rather than template files you can simple copy over and everything work.

We do have some details on how the templates work in EE4 here: https://eventespresso.com/section/templates-2/

If you let me know what you are looking to change I try and help further and let you know the template you need.


Atma

August 17, 2018 at 4:02 am

Hi,

I found a good description. I copied the file content-espresso_events.php from Espresso_Arabica_2014 and created the single-espresso_event.php file from single.php.

I changed the sequence in content-espresso_events.php and I get now some sections twice: venues, ticket and datetimes. The details are only shown once.

I don’t understand, why?

Best regards, Daniela


Atma

August 17, 2018 at 4:10 am

get_template_part( ‘includes/loop’, ‘loop’ );

//show related posts based on tags if there are any
get_template_part( ‘content-espresso_events’ );

//wordpress function that loads the comments template “comments.php”
comments_template();


Tony

  • Support Staff

August 17, 2018 at 4:32 am

Is it the order of the details you’re trying to change?

If so, we have that within the plugin now.

Go to Event Espresso -> Events -> Templates

There’s an option ‘Use Custom Display Order?’ for both the single event and event list pages and also a drag and drop interface to reorder the sections.

The above issue sounds like your calling the templates manually and also have the EE injected the content into the filters, so you get the output twice.

Which instructions did you follow?

Have you added a filter to your functions.php file as part of the changes?


Atma

August 17, 2018 at 6:41 am

HI Tony,

I use Advanced Custom fields, because we wand to show some more informations.
Yes I addes filter o functions.php. I delete them an look, if this solves the problem.

thanks,
best regards, Daniela


Atma

August 17, 2018 at 6:44 am

thanks, this was it. I deleted the code for the filters, which was described in an old documentation.

Thank you very much,
Best regards, Daniela


Tony

  • Support Staff

August 17, 2018 at 8:29 am

You’re most welcome, Daniela.

If you have any further problems just let us know.

Viewing 7 reply threads

The support post ‘Template Customization (3)’ 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.

Event Espresso