Support

Home Forums Event Espresso Premium Split: EE4 Need to customise single event template

Split: EE4 Need to customise single event template

Posted: October 31, 2015 at 5:23 am

Viewing 3 reply threads


ATSI

October 31, 2015 at 5:23 am

Hello,

I am also trying to arrange the sections on the event details page and I can’t seem to get it to work with you suggested code at the following:

https://gist.github.com/lorenzocaum/a33405557a2a065779ea.

The add_filter sections of your code work fine, but the remove_filter ones don’t seem to remove the appropriate section. When I paste your code into my functions.php file I get duplicates of both the date/time and ticket selector sections. See the following for an example.

http://www.atsicad.com/events/autodesk-autocad-civil-3d-webcast/

Any help is appreciated.


ATSI

November 1, 2015 at 6:10 pm

Apparently the code suggested for changing the order of sections on the event details page don’t work if you have copied any of the templates into your child theme folder. I was able to accomplish everything that I needed by directly editing the content-espresso_events.php file that I had copied into my child theme folder.


Tony

  • Support Staff

November 2, 2015 at 4:05 am

Yeah you can use either of those methods, but not both together.

When you copy templates to your theme (child theme or otherwise) EE assumes you are controlling all of the output for the data and does not run the content filters so the code provided to alter the order of the content filters won’t run. Well actually as you mentioned they will, but EE is no longer adding the details using filters on the_content() so then the remove_filter() doesn’t remove anything and you get duplicate details.

Anyway, I just wanted to add some details on what was happening.

I’m glad you got this working, if you have any further questions just let us know.


Lorenzo Orlando Caum

  • Support Staff

November 18, 2015 at 8:46 am

Hello again,

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


Lorenzo

Viewing 3 reply threads

The support post ‘Split: EE4 Need to customise single event template’ 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