Posted: August 16, 2018 at 4:30 pm
Hi, I found the documentation https://eventespresso.com/wiki/put-custom-templates/ How find I the template-files, so that I can customize them, or add other sections in there? Best regards, |
|
Hi Daniela,
That documentation is for EE3, based on this:
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).
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 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. |
|
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 |
|
get_template_part( ‘includes/loop’, ‘loop’ ); //show related posts based on tags if there are any //wordpress function that loads the comments template “comments.php” |
|
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 |
|
HI Tony, I use Advanced Custom fields, because we wand to show some more informations. thanks, |
|
thanks, this was it. I deleted the code for the filters, which was described in an old documentation. Thank you very much, |
|
You’re most welcome, Daniela. If you have any further problems just let us know. |
|
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.