Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter plot29

    (@plot29)

    Avada support gave me this code to add to functions.php in child theme

    /*
     * Moves the front-end ticket purchase form, accepts WP action/hook and optional hook priority
     *
     * @param $ticket_location_action WP Action/hook to display the ticket form at
     * @param $ticket_location_priority Priority for the WP Action
     */
    function tribe_etp_move_tickets_purchase_form ( $ticket_location_action, $ticket_location_priority = 10 ) {
        if ( ! class_exists( 'Tribe__Tickets__Tickets') ) return;
        $etp_classes = array(
            'Easy_Digital_Downloads' =>     'Tribe__Tickets_Plus__Commerce__EDD__Main',
            'ShoppVersion' =>               'Tribe__Tickets_Plus__Commerce__Shopp__Main',
            'WP_eCommerce' =>               'Tribe__Tickets_Plus__Commerce__WPEC__Main',
            'Woocommerce' =>                'Tribe__Tickets_Plus__Commerce__WooCommerce__Main',
            'Tribe__Tickets__Tickets' =>    'Tribe__Tickets__RSVP',
        );
        foreach ( $etp_classes as  $ecommerce_class => $ticket_class) {
            if ( ! class_exists( $ecommerce_class ) || ! class_exists( $ticket_class ) ) continue;
            $form_display_function = array( $ticket_class::get_instance(), 'front_end_tickets_form' );
            if ( has_action ( 'tribe_events_single_event_after_the_meta', $form_display_function ) ) {
                remove_action( 'tribe_events_single_event_after_the_meta', $form_display_function, 5 );
                add_action( $ticket_location_action, $form_display_function, $ticket_location_priority );
            }
        }
    }
    /*
     * TO MOVE THE TICKET FORM UNCOMMENT ONE OF THE FOLLOWING BY REMOVING THE //
     */
    /*
     * Uncomment to Move Ticket Form Below Related Events
     */
    //tribe_etp_move_tickets_purchase_form( 'tribe_events_single_event_after_the_meta', 20 );
    /*
     * Uncomment to Move Ticket Form Below the Event Description
     */
    tribe_etp_move_tickets_purchase_form( 'tribe_events_single_event_after_the_content', 5 );
    /*
     * Uncomment to Move Ticket Form Above the Event Description
     */
    //tribe_etp_move_tickets_purch
    Thread Starter plot29

    (@plot29)

    I hope you don’t mind, but I had another question that I’d like to through out your way.

    Do you know of any sites where I can purchase WP themes other then https://themeforest.net ?

    I’m trying to help a friend out with his commercial gallery. I need a theme that can showcase 60 plus artists.

    Thanks ebiz_helper!!

    Thread Starter plot29

    (@plot29)

    Thank you, that answered all my questions!!!

    Forum: Themes and Templates
    In reply to: sidebar
    Thread Starter plot29

    (@plot29)

    Thanks, found it and made the changes!!

    Any suggestions as to why calendar title doesn’t show and where to edit the text style for just the randomtext plugin?

    Thread Starter plot29

    (@plot29)

    stvwlf,

    That was simple enough, but still missed it.
    Thank a lot for you help!!

Viewing 5 replies - 1 through 5 (of 5 total)