Support

Home Forums Event Espresso Premium EE4 Template Customization

EE4 Template Customization

Posted: November 5, 2014 at 10:48 am


imcabee

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,
Ian


Lorenzo Orlando Caum

  • Support Staff

November 5, 2014 at 11:43 am

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/


Lorenzo


imcabee

November 5, 2014 at 9:53 pm

Hello Lorenzo,

Thank you. This definitely points me in the right direction. How would the “venues” be handled as a function?

Thanks,
Ian


Dean

November 6, 2014 at 3:01 am

Hi,

What exactly are you trying to do with the venues?


imcabee

November 6, 2014 at 8:36 pm

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,
Ian


Lorenzo Orlando Caum

  • Support Staff

November 6, 2014 at 9:50 pm

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).


Lorenzo


imcabee

November 7, 2014 at 10:56 am

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,
Ian


Lorenzo Orlando Caum

  • Support Staff

November 10, 2014 at 11:28 am

Hi Ian,

Please see this tutorial:

https://gist.github.com/lorenzocaum/a33405557a2a065779ea#comment-1379311


Lorenzo


imcabee

November 10, 2014 at 5:43 pm

Thank you Lorenzo. I’m not sure why this approach didn’t work for me last time, but it does now!

Best,
Ian


Lorenzo Orlando Caum

  • Support Staff

November 18, 2015 at 8:29 am

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


Lorenzo

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.

Event Espresso