Support

Home Forums Event Espresso Premium Changing Event Details Order

Changing Event Details Order

Posted: September 10, 2015 at 4:10 pm

Viewing 2 reply threads


Mike Clay

September 10, 2015 at 4:10 pm

Hi,

We would like to change the order details are listed on the “?espresso_events=” page. We can’t seem to find the right location to move things around. We have the people addin installed.

Currently the page is in this order.
* Event Title
* About the Teacher (People Type)
* Teacher Name
* Teacher Bio
* Event Description
* the rest of the event details…

We would like put Event Description above the “About The Teacher” section. The class for this line (if it helps) is “eea-people-addon-people-type-label” followed by “eea-people-addon-people-type-teacher” where “teacher” is our people type.

So the order we would like is:
* Event Title
* Event Description
* About the Teacher
* Teacher Bio
* the rest of the event details…

I think it’s something with the people addon that’s putting the description below the People addon, but I can’t seem to find it in the Event Espresso templates.

Is it possible to do what we would like to do?

Thanks.

Example page: http://recessdumbo.cdcdev002.com/?espresso_events=art-with-anna


Josh

  • Support Staff

September 11, 2015 at 2:12 pm

Hi there,

It turns out the code in the people add-on that adds the people-content is this:

//hook into event details right before event details content
add_action( 'the_content', array( __CLASS__, 'people_event_details' ), 90 );

So your step 1 is add this to your theme’s functions.php file:

remove_action( 'the_content', array('EE_People_Template_Hooks', 'people_event_details' ), 90 );

Then you add a single-espresso_events.php template to your theme, if you don’t already have one there. You can base the template from of page.php or single.php.

Then, where you normally have a call to the_content() function within the loop, you replace it with something like this:

<?php espresso_get_template_part( 'content', 'espresso_events-details' ); ?>
<?php espresso_get_template_part( 'content', 'espresso_events-people'); ?>
<?php espresso_get_template_part( 'content', 'espresso_events-tickets' ); ?>
<?php espresso_get_template_part( 'content', 'espresso_events-datetimes' ); ?>
<?php espresso_get_template_part( 'content', 'espresso_events-venues' ); ?>


Mike Clay

September 11, 2015 at 4:09 pm

Ok thanks. We’ll give it a try and let you know how it goes this weekend.

Viewing 2 reply threads

The support post ‘Changing Event Details Order’ 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