Home › Forums › Calendar Products › Events Calendar PRO › RSVP/Ticket information not moving above meta
- This topic has 5 replies, 4 voices, and was last updated 7 years, 6 months ago by David Akers.
-
AuthorPosts
-
September 26, 2016 at 11:11 am #1168838David AkersParticipant
We updated the functions.php file with the information provided in the thread https://theeventscalendar.com/knowledgebase/moving-rsvp-ticket-forms/
Here’s the code we added:
if ( class_exists( ‘Tribe__Tickets_Plus__Commerce__WooCommerce__Main’ ) ) {// Remove the form from its default location (after the meta).
remove_action( ‘tribe_events_single_event_after_the_meta’, array( Tribe__Tickets_Plus__Commerce__WooCommerce__Main::get_instance(), ‘front_end_tickets_form’ ), 5 );
}
if ( class_exists( ‘Tribe__Tickets_Plus__Commerce__WooCommerce__Main’ ) ) {// Place the form in the new location (before the content).
add_action( ‘tribe_events_single_event_after_the_content’, array( Tribe__Tickets_Plus__Commerce__WooCommerce__Main::get_instance(), ‘front_end_tickets_form’ ), 5 );
}
if ( class_exists( ‘Tribe__Tickets__RSVP’ ) ) {// Remove the form from its default location (after the meta).
remove_action( ‘tribe_events_single_event_after_the_meta’, array( Tribe__Tickets__RSVP::get_instance(), ‘front_end_tickets_form’ ), 5 );
}
if ( class_exists( ‘Tribe__Tickets__RSVP’ ) ) {// Add the form to its new location (before the content).
add_action( ‘tribe_events_single_event_after_the_content’, array( Tribe__Tickets__RSVP::get_instance(), ‘front_end_tickets_form’ ), 5 );
}Nothing is changing in the event view. The RSVP and ticket options still show after the meta information.
September 27, 2016 at 8:34 am #1169223NicoMemberHi there David,
Thanks for getting in touch with us! I’ll help you here…
First of can you please send over a link to an active event with tickets in your site? I don’t see any cache plugins active in your site but if there’s one installed, please try flushing the stored cache and re-test.
Also, if you switch the site theme to Tweenty Sixteen (WordPress default theme) and move the code to the corresponding functions.php file does it work as expected?
Last but not least, you can reduce the code to:
if ( class_exists( 'Tribe__Tickets_Plus__Commerce__WooCommerce__Main' ) ) {
// Remove the form from its default location (after the meta).
remove_action( 'tribe_events_single_event_after_the_meta', array( Tribe__Tickets_Plus__Commerce__WooCommerce__Main::get_instance(), 'front_end_tickets_form' ), 5 );
// Place the form in the new location (after the content).
add_action( 'tribe_events_single_event_after_the_content', array( Tribe__Tickets_Plus__Commerce__WooCommerce__Main::get_instance(), 'front_end_tickets_form' ), 5 );
}if ( class_exists( 'Tribe__Tickets__RSVP' ) ) {
// Remove the form from its default location (after the meta).
remove_action( 'tribe_events_single_event_after_the_meta', array( Tribe__Tickets__RSVP::get_instance(), 'front_end_tickets_form' ), 5 );
// Add the form to its new location (after the content).
add_action( 'tribe_events_single_event_after_the_content', array( Tribe__Tickets__RSVP::get_instance(), 'front_end_tickets_form' ), 5 );
}
I just tested the code and it’s working for me!
Please let me know about it,
Best,
NicoSeptember 27, 2016 at 10:54 am #1169345David AkersParticipantThis reply is private.
September 29, 2016 at 5:42 am #1170306NicoMemberThis reply is private.
October 21, 2016 at 9:35 am #1180643Support DroidKeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘RSVP/Ticket information not moving above meta’ is closed to new replies.