Support

Home Forums Event Espresso Premium Layout of Presenters on Event Page

Layout of Presenters on Event Page

Posted: October 28, 2015 at 3:34 pm


Kelsa Dickey

October 28, 2015 at 3:34 pm

I’ve added presenters to the “people admin” and then choose those individuals when creating the event registration page. Two questions:
1. It lists the presenter first, above the topic & event details. Can this be changed? The event details need to be the 1st thing a person sees. EXAMPLE: http://fiscalfitnessphx.com/events/faqs-on-the-fafsa/

2. I’ve added the presenter’s photo as a featured image under People Admin yet as you can see, it doesn’t show up on the Event page. I’d like their photo to show up.


Lorenzo Orlando Caum

  • Support Staff

October 29, 2015 at 1:09 pm

Hi Kelsa,

We are finalizing a drag and drop option that will let you shift that information around.

If you need a solution now, then try adding the following in your child theme’s functions.php file or a site specific plugin:

add_filter ('the_content', 'my_remove_event_datetimes', 100 );
 
// remove datetimes
function my_remove_event_datetimes( $content ) {
    if ( 'espresso_events' == get_post_type() && is_singular() && !post_password_required() ) {
        remove_filter( 'the_content', array( 'EED_Event_Single', 'event_datetimes' ), 110 );
        add_filter( 'the_content', 'my_add_event_datetimes', 121);
    }
    return $content;
}
 
// add datetimes after the tickets
function my_add_event_datetimes( $content ) {
    return $content . EEH_Template::locate_template( 'content-espresso_events-datetimes.php' );
}

add_filter ('the_content', 'my_remove_event_tickets', 100 );
 
// remove tickets
function my_remove_event_tickets( $content ) {
    if ( 'espresso_events' == get_post_type() && is_singular() && !post_password_required() ) {
        remove_filter( 'the_content', array( 'EED_Event_Single', 'event_tickets' ), 120 );
        add_filter( 'the_content', 'my_add_event_tickets', 160);
    }
    return $content;
}
 
// add tickets after the content
function my_add_event_tickets( $content ) {
    return $content . EEH_Template::locate_template( 'content-espresso_events-tickets.php' );
}

add_filter ('the_content', 'my_remove_event_people', 100 );

// remove INSTRUCTOR
function my_remove_event_people( $content ) {
    if ( 'espresso_events' == get_post_type() && is_singular() && !post_password_required() ) {
        remove_filter( 'the_content', array( 'EE_People_Template_Hooks', 'people_event_details' ), 90 );
        add_filter( 'the_content', 'my_add_people_details', 150);
    }
    return $content;
}

// add INSTRUCTOR after the content
function my_add_people_details( $content ) {
    return $content . EEH_Template::locate_template( 'content-espresso_events-people.php' );
}

// remove VENUE
function my_remove_event_venue( $content ) {
    if ( 'espresso_events' == get_post_type() && is_singular() && !post_password_required() ) {
        remove_filter( 'the_content', array( 'EED_Event_Single', 'event_location' ), 120 );
        add_filter( 'the_content', 'my_add_event_venue', 102);
    }
    return $content;
}
 
// add VENUE after the content
function my_add_event_venue( $content ) {
    return $content . EEH_Template::locate_template( 'content-espresso_venues-location.php' );
}

Your second question can be done with some template changes but we would like to make sure that the order is updated first.

Thanks


Lorenzo


Kelsa Dickey

October 30, 2015 at 3:21 pm

Thanks Lorenzo. I think I’ll just wait for the rollout of the new drag & drop feature (which would be great by the way). Until then, I’ll simply add presenters to the body of the event itself and not use the “people admin” section for now. Thanks for the response, I look forward to the new features!


Lorenzo Orlando Caum

  • Support Staff

October 30, 2015 at 4:23 pm

Hi Kelsa,

We’ll update your support post once it becomes available. Thanks and do enjoy your weekend!


Lorenzo

The support post ‘Layout of Presenters on Event Page’ 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