Home › Forums › Ticket Products › Eventbrite Tickets › Moving the ticket Box
- This topic has 6 replies, 3 voices, and was last updated 9 years, 8 months ago by Barry.
-
AuthorPosts
-
July 23, 2014 at 9:35 am #489235stevebrickleParticipant
I followed the instructions here https://theeventscalendar.com/support/forums/topic/move-eventbrite-ticket-to-the-top/ for moving the ticket box up the page. However it did not work for me.
I moved the line
@@@php
<?php do_action( ‘tribe_events_single_event_after_the_meta’ ) ?>
@@@
above Event Content. In addition I have not made any changes to the functions.php file.I can’t test the function, it looks fine.
Can you forsee any problems before the site goes live
July 24, 2014 at 8:52 am #497781BarryMemberHi Steve,
The only real problems that might surface are where you start using solutions, fixes or other extensions which assume that hook will be in the correct place – that said, it’s unlikely it will cause any serious issues and indeed it may be you never encounter any problems.
As an alternative, though, what about adding a snippet like this to your theme’s functions.php file (or some other suitable place):
add_action( 'init', 'move_eb_ticket_form' ); function move_eb_ticket_form() { $callback = array( Event_Tickets_PRO::instance(), 'displayEventBriteTicketForm' ); remove_action( 'tribe_events_single_event_after_the_meta', $callback, 9 ); add_action( 'tribe_events_single_event_before_the_content', $callback ); }
Would that work?
July 24, 2014 at 9:30 am #498078stevebrickleParticipantHi Bazza,
Many thanks (almost as fast as Shopp!!!)
As usually happens with this stuff, client is indecisive!!. I will utilise your suggestion while the procrastination continues.
Small place this web
SteveJuly 24, 2014 at 1:52 pm #499142BarryMemberIt is indeed a small place 🙂
Glad it helped, just let me know if there’s anything else we can do to help with this one (or if there are any other separate issues that crop up definitely open a new thread and one of the team will be happy to help).
Thanks!
August 26, 2014 at 1:14 pm #702106unitedstatesbowlingacademyParticipantI tried adding the function to move the tickets box using the function above. I have a child theme so I created a file called functions.php in my child theme and then added the code below. When I upload it to my child theme and refresh the site, I get a completely white page. Any suggestions?
<?php
add_action( ‘init’, ‘move_eb_ticket_form’ );function move_eb_ticket_form() {
$callback = array( Event_Tickets_PRO::instance(), ‘displayEventBriteTicketForm’ );
remove_action( ‘tribe_events_single_event_after_the_meta’, $callback, 9 );
add_action( ‘tribe_events_single_event_before_the_content’, $callback );
}
?>August 26, 2014 at 1:20 pm #702119unitedstatesbowlingacademyParticipantI found another post that achieved what I wanted. Here it is in case some comes across this here: https://theeventscalendar.com/moving-the-ticket-form/
August 27, 2014 at 2:06 am #703370BarryMemberGlad you’re all sorted 🙂
It’s worth noting tri.be/moving-the-ticket-form relates to WooCommerce Tickets whereas this thread was created in respect of Eventbrite Tickets – which might explain the confusion – but thank you in any case for confirming.
I’ll go ahead and close this thread, but if we can help with anything else please do feel free to create new tickets as required.
-
AuthorPosts
- The topic ‘Moving the ticket Box’ is closed to new replies.