Is it possible to move Who's Attending

Home Forums Ticket Products Event Tickets Plus Is it possible to move Who's Attending

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1113160
    Dan Feeley
    Participant

    Is there a way to move the “Who’s Attending?” section on the single event page to below the content?

    #1113377
    George
    Participant

    Hey @Danfeeley,

    Thanks for reaching out!

    Just to be totally clear so I can best help out here, when you say “below the content”, do you mean right below the content as in above the tickets purchasing form? Or is your ticketing section as a whole currently above the content?

    Thanks,
    George

    #1113425
    Dan Feeley
    Participant

    Ah yes, good catch. Our ticket section is currently above the content.
    So I would like to move this between the content and event details.

    #1113864
    George
    Participant

    Thanks for clarifying!

    Sorry to pose another question here, but can you share a link to where this is visible on your site? I’m just curious to take a look to see how it’s rendering.

    By default, the tickets render below content. So I’m curious:

    1. Do you happen to know why they’re above the content? Have you made any code customizations to make this happen?

    2. If you do nothing else on your site but activate a default theme like Twenty Twelve, where does the ticketing content show up?

    Thank you!
    George

    #1113973
    Dan Feeley
    Participant

    This reply is private.

    #1114965
    George
    Participant

    Thank you for your patience with the delayed response over the weekend!

    In addition to the code from that knowledgebase article, I would recommend adding code like this to your theme’s functions.php file:


    add_action( 'init', 'tribe_relocate_attendees_list' );

    function tribe_relocate_attendees_list() {
    $attendees_list = Tribe__Tickets_Plus__Attendees_List::instance();
    remove_action( 'tribe_events_single_event_after_the_meta', array( $attendees_list, 'render' ), 4 );
    add_action( 'tribe_events_single_event_before_the_meta', array( $attendees_list, 'render' ), 4 );
    }

    I tinkered a bit and it’s this code that finally let me achieve what you describe:

    So I would like to move this between the content and event details.

    Try it out and let me know if it helps!

    — George

    #1115097
    Dan Feeley
    Participant

    No problem George, thank you very much.
    That worked perfectly.

    #1115362
    George
    Participant

    😀

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Is it possible to move Who's Attending’ is closed to new replies.