Support

Home Forums Event Espresso Premium Duplicate Ticket Selector

Duplicate Ticket Selector

Posted: January 19, 2018 at 1:58 pm

Viewing 4 reply threads


cmccreery

January 19, 2018 at 1:58 pm

Seeing a duplicate ticket selector for all my events.

Narrowed it down to issue with Divi theme. Wondering if there is anything I can do to fix this issue. I’ve rolled back to older theme version but still persists.


Josh

  • Support Staff

January 19, 2018 at 4:44 pm

Hi there,

I have an older copy of Divi (3.0.71) and I’m not seeing that issue. May I ask are there any Divi plugins/extensions/add-ons activated on the site, and if so can you try temporarily deactivating those to see if that fixes the issue?


cmccreery

January 19, 2018 at 7:39 pm

Hey Josh, would you mind sharing that version of Divi you have so I can test that?


cmccreery

January 19, 2018 at 7:41 pm

Here is the staging site

http://ldahalton.staging.wpengine.com/events/lecture-series-workshop-parent-advocacy-roadmap/


cmccreery

January 19, 2018 at 7:48 pm

Figured it out!

There was a filter in the functions.php for the child divi theme that I guess was conflicting

//* Please do NOT include the opening php tag, except of course if you're starting with a blank file

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', 121);
    }
    return $content;
}

// add tickets after the content
function my_add_event_tickets( $content ) {
    return $content . EEH_Template::locate_template( 'content-espresso_events-tickets.php' );
}
Viewing 4 reply threads

The support post ‘Duplicate Ticket Selector’ 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