Location of WooTickets and Event Meta Box

Home Forums Ticket Products Event Tickets Plus Location of WooTickets and Event Meta Box

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #53394
    Tony
    Participant

    After upgrading to 3.0, I find that the meta box with event particulars is pushed below the event text. Moreover, the WooTickets box is pushed all the way to the bottom of the event, even below Related Events.

    Which file would I edit to move these items around. At the very least, the tickets box needs to appear before related events.

    Thanks

    #53427
    Barry
    Member

    Hi Tony, take a look at our updated Themer’s Guide first of all (as the directory and file naming conventions have changed somewhat):

    https://theeventscalendar.com/support/documentation/events-calendar-themers-guide/

    Basically though you have a choice between editing tribe-events/single-event.php and rearranging elements, or possibly and alternatively you may be able to accomplish this by clever use of actions and filters from within your theme’s functions.php file (if you’re comfortable with that).

    #53620
    Tony
    Participant

    Thanks for the info, Barry.

    #53722
    Toni
    Participant

    I was wondering if anyone could help elaborate on how I can get the Related Events to appear below the Woo Tickets box. I’m new to PHP, but from what I saw in single-event.php, the Related Events and Woo Tickets box are being called together via “do_action( ‘tribe_events_single_event_after_the_meta’ ) “. I’ve been looking through the files but can’t seem to find where the code is putting the Related Events before the ticket box. My client wants the ticket box right after the description but also wants the Related Events box, just to appear at the end of the page. Unless I can get that working the Woo Tickets plugin we purchased will unfortunately not work for our purposes.

    Any advice as to in what file the Related Events box is being told to display before the ticket box, and how I could switch them around? Thanks!

    #53768
    Barry
    Member

    Hi Jonah,

    They are indeed triggered by the same hook, so one way to deal with this is to change the priorities of one or more actions.

    Here’s an example where I am making the WooTickets form display before related events by changing its priority so it runs before the related events action:

    http://pastebin.com/mP9ptf41

    You could for instance add the above snippet to your theme’s functions.php file … does that help?

    #58808
    Barry
    Member

    Guessing we’re all good here since there’s been no follow-up in quite a while. I’ll go ahead and close this thread. Thanks all!

    #979413
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Location of WooTickets and Event Meta Box’ is closed to new replies.