Gravitate Core Services

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: Move Ticket Section to top #1232373

    Hey Nico,
    This worked like a charm if I could just add on to this ticket and ask one more thing. I need to increase the height of the ticket box, I used the function snippet I found in the knowledge base but it does not seem to be working. Can you tell me if the below is correct for my function file and if I may be missing something ?

    
    
    // BELOW SNIPET IS USED TO MOVE TICKET BOX ABOVE CONTENT ON EVENT PAGE 
    
    add_action( 'init', 'move_eb_ticket_form' );
     
    function move_eb_ticket_form() {
        $display_tickets = array( tribe( 'eventbrite.main' ), 'print_ticket_form' );
        remove_action( 'tribe_events_single_event_after_the_meta', $display_tickets, 9 );
        add_action( 'tribe_events_single_event_before_the_meta', $display_tickets );
    }
    
    // BELOW SNIPPET IS USED TO CHANGE HEIGHT OF EVENT TICKET BOX
    
    add_filter('tribe_template_factory_debug', 'change_eb_iframe_height');
     
    function change_eb_iframe_height($html) {
    if (false === strpos($html, 'eventbrite-ticket-embed')) return $html;
    return str_replace('style="height:900px!important;', 'style="height:900px!important;', $html);
    }
Viewing 1 post (of 1 total)