Posted: May 5, 2015 at 12:56 pm
|
I have not worked with EE4 before (a few times with EE3) and I am having a hard time finding what I need in the documentation. I need to do some customizations to the template used for Single Events, but I am not seeing the templates anywhere. What file will I edit? I found documentation for doing this in EE3, but everything I find for EE4 seems to assume you already know where the templates are. |
Hi Jenny, How are you today? Event Espresso inherits your blog post archive template. You’ll find this page helpful. https://eventespresso.com/2014/02/developers-corner-theming-event-espresso-4/ Does that help you get started? |
|
|
It’s really just the page for Single Events I am interested in. Do I create a single-events.php file for that? |
|
Oh, I see it needs to be single-espresso_events.php. If I make a copy of my single.php and name it single-espresso_events.php, then my event has almost no content. So I have more reading to do. |
Hi Jenny, you are almost there. You’ll just need to switch out the call for the content so it points to Event Espresso. Please see step 5 here: https://gist.github.com/lorenzocaum/16aac08f099d7c154f04 If you are wanting to adjust the order of the events content on that page, then try adding this to your child theme’s functions.php file or a site specific plugin: https://gist.github.com/lorenzocaum/a33405557a2a065779ea — |
|
|
Thanks Lorenzo! One hiccup. I created the template file, and that was great, and the content also showed back up. But I did want to rearrange the order so that the class description shows up before ticket selection, so I did what you suggested above with the functions.php – and now the Available Tickets table and the date and time are showing up twice … http://thesociabilityco.com/events/manners-101/ The first ticket table, date, and time should not be there. |
Okay, try removing that filter. Then go to this link: https://gist.github.com/lorenzocaum/a33405557a2a065779ea#comment-1379311 Download the file in step 1 which already has the content order rearranged. Then upload that to your themes folder: /wp-content/themes/yourthemefolder Does that help? — |
|
|
I will try this, but FYI, is this missing an ?> at the end of the file? |
|
This worked! Thank you! |
Hello again Jenny, As of Event Espresso 4.8.21, there is a custom display re-order option available in the WordPress dashboard. Backup your WordPress and update your software https://eventespresso.com/wiki/how-to-back-up-your-site/ You can see the change log for Event Espresso 4 here: https://eventespresso.com/wiki/ee4-changelog/ Remove existing filters for adjusting the order If you have used some of the suggested filters to adjust the order of your event elements, then you’ll want to first remove those from your website and they may have been added to your child theme’s functions.php file or a site specific plugin. Set a custom order through the Templates screen Afterwards, go to your WP dashboard (WP-admin) –> Event Espresso –> Events –> Templates. The Use Custom Display Order options in the Templates screen can be used to reorder the events elements on the single event page as well as the events listing page. Again, be sure that any of the filters for adjusting the order have been removed from your site specific plugin or your child theme’s functions.php file before turning on the template reorder option. Otherwise, you may see duplicate content. Thanks — |
|
The support post ‘Edit templates in EE4’ 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.