Posted: November 5, 2014 at 10:48 am
|
Hello, I am using a child theme of Genesis and trying to customize the EE4 single event template. I have copied over “content-espresso_events.php” from the “Espresso_Arabica_2014” directory, but any changes I make to this file don’t do anything. I just want to move around the parts of this file (ie. Move date above ticket selection). What am I doing wrong? Thanks, |
Hi Ian, Please try this sample code for adjusting the order of the events content: https://gist.github.com/lorenzocaum/a33405557a2a065779ea It can be added to your child theme’s functions.php file or a site specific plugin: https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/ — |
|
|
Hello Lorenzo, Thank you. This definitely points me in the right direction. How would the “venues” be handled as a function? Thanks, |
|
Hi, What exactly are you trying to do with the venues? |
|
Hello Dean, I just wanted to change the position of the venue information to go just below the date. How do I move it within the template? Thanks, |
Hi, I can provide another example. Could you let us know what you are looking for by writing out the order? event image, event description, ticket selector, datetime, and so forth I’m not sure if you are referring to moving the venue with the updated layout using the sample code or the original layout (they are different). — |
|
|
Hello Lorenzo, If you could provide another example that would be great. What I would like is to have the title and the event’s featured image at the top. Then the date, the description of the event, the venue and lastly the ticket selection. Thanks, |
Hi Ian, Please see this tutorial: https://gist.github.com/lorenzocaum/a33405557a2a065779ea#comment-1379311 — |
|
|
Thank you Lorenzo. I’m not sure why this approach didn’t work for me last time, but it does now! Best, |
Hi Ian, As of Event Espresso 4.8.21, there is a template 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 ‘EE4 Template Customization’ 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.