Home › Forums › Ticket Products › Event Tickets Plus › MOVE TICKETS
- This topic has 3 replies, 2 voices, and was last updated 10 years, 10 months ago by
Nico.
-
AuthorPosts
-
June 7, 2015 at 10:38 pm #967738
anywherefest
ParticipantHi
I have used your snippet in my functions.php to move the ticket box to below the event description but it isn’t working…I have deactivated and reactivated wootickets to no avail.
Better still, I’d like to move it to below my featured image actually. I can’t seem to locate the single module code for tickets…any ideas? It would mean I’d then need to remove it from the modules too…
An example event is here: https://anywherefest.com/myob
May I also have a snippet to remove the Details & Organizer modules too?
Many thanks!
June 8, 2015 at 1:24 pm #967929Nico
MemberHi Paul,
Thanks for reaching out! Let me help you out with these issues.
To move tickets below the featured image you should use the following code in your funcitons.php file:
if (class_exists('TribeWooTickets')) {
remove_action( 'tribe_events_single_event_after_the_meta', array( TribeWooTickets::get_instance(), 'front_end_tickets_form'), 5 );
add_action( 'tribe_events_single_event_before_the_content', array( TribeWooTickets::get_instance(), 'front_end_tickets_form'), 5 );
}
The article you found was prematurely updated with the code that will work with upcoming release 3.10. Please remember to change the code to the one in the article if you update to WooCommerce Tickets 3.10.
For removing Event Details & Organizers, you need to override the ‘modules/meta’ template. The process is simple, just copy the file ‘wp-content/plugins/the-events-calendar/views/modules/meta.php’ to ‘wp-content/themes/[your-theme]/tribe-events/modules/meta.php’. The go ahead and edit ‘meta.php’ in your theme, comment out line 28 to remove ‘Event Details’ and line 46 to do so with ‘Organizer’. You can find detailed information about template override in our Themer’s Guide.
Please let me know if this works for you,
Best,
NicoJune 22, 2015 at 5:16 am #971789anywherefest
ParticipantThanks, I’m all sorted. Much appreciated!
June 22, 2015 at 7:43 am #971866Nico
MemberHey Alex,
Glad to hear, and sorry for calling you ‘Paul’ in my reply, ¯\_(ツ)_/¯. I’m going to close this topic – but please don’t hesitate to create new topics if you need help with anything else.
Have a great week,
Nico -
AuthorPosts
- The topic ‘MOVE TICKETS’ is closed to new replies.
