{"id":1896517,"date":"2019-10-18T13:19:19","date_gmt":"2019-10-18T17:19:19","guid":{"rendered":"https:\/\/theeventscalendar.com\/knowledgebase\/moving-the-eventbrite-tickets-box-2\/"},"modified":"2026-04-20T19:53:03","modified_gmt":"2026-04-20T23:53:03","slug":"customize-eventbrite-tickets","status":"publish","type":"post","link":"https:\/\/theeventscalendar.com\/knowledgebase\/customize-eventbrite-tickets\/","title":{"rendered":"Customizing the Eventbrite Tickets Display"},"content":{"rendered":"\n<p>The Eventbrite ticket form that appears on your single event pages works well at its default size and position for most setups \u2014 but sometimes you need to move it or make it taller so all the ticket fields are visible. Both adjustments take a single PHP snippet. Add either one to your theme&#8217;s <code>functions.php<\/code> file or use a tool like the free <a href=\"https:\/\/wordpress.org\/plugins\/code-snippets\/\">Code Snippets<\/a> plugin.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-changing-the-ticket-form-s-position\">Changing the Ticket Form&#8217;s Position<\/h2>\n\n\n\n<p>By default, the Eventbrite ticket form is placed just below the event details (&#8220;meta&#8221;) box. If you&#8217;d rather have it higher up \u2014 for example, immediately above the meta box so it&#8217;s more visible \u2014 this snippet moves it:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>add_action( 'init', 'move_eb_ticket_form' );\n\nfunction move_eb_ticket_form() {\n    if ( class_exists( 'Tribe__Events__Tickets__Eventbrite__Main' ) ) {\n        $display_tickets = &#91; tribe( 'eventbrite.main' ), 'print_ticket_form' ];\n        remove_action( 'tribe_events_single_event_after_the_meta', $display_tickets, 9 );\n        add_action( 'tribe_events_single_event_before_the_meta', $display_tickets );\n    }\n}<\/code><\/pre>\n\n\n\n<p>If you want the form somewhere else entirely, change the target action on the last <code>add_action<\/code> line. As the hook name suggests, <code>tribe_events_single_event_before_the_meta<\/code> places it before the meta block. To display it before the event description instead, change that line to:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>add_action( 'tribe_events_single_event_before_the_content', $display_tickets );<\/code><\/pre>\n\n\n\n<p>Any hook fired on the single event template is a valid target, so you can place the ticket form wherever fits your layout best.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-adjusting-the-form-height\">Adjusting the Form Height<\/h2>\n\n\n\n<p>The Eventbrite ticket form is rendered inside an iframe with a default height. When the form contains more fields than that default can accommodate \u2014 multiple ticket types, for example \u2014 some fields may be hidden or cut off. This snippet increases the iframe height based on how many visible tickets the event has:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>add_filter( 'tribe_events_eventbrite_iframe_height', function ( $iframe_height, $post_id, $event, $num_visible_tickets ) {\n    $intended_height = 400 + 160 * $num_visible_tickets;\n    if ( $iframe_height &lt; $intended_height ) {\n        $iframe_height = $intended_height;\n    }\n    return $iframe_height;\n}, 100, 4 );<\/code><\/pre>\n\n\n\n<p>Adjust the <code>$intended_height<\/code> calculation if the default (a 400-pixel base plus 160 pixels per visible ticket) doesn&#8217;t match how your forms actually render. The snippet only increases the height \u2014 if Eventbrite ever returns a taller iframe, the snippet leaves it alone.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-for-developers\">For Developers<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/docs.theeventscalendar.com\/reference\/hooks\/tribe_events_eventbrite_iframe_height\/\"><code>tribe_events_eventbrite_iframe_height<\/code><\/a> \u2014 filter reference for the iframe height value<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>The Eventbrite ticket form that appears on your single event pages works well at its default size and position for most setups \u2014 but sometimes you need to move it or make it taller so all the ticket fields are visible. Both adjustments take a single PHP snippet. Add either one to your theme&#8217;s functions.php&#8230;<\/p>\n","protected":false},"author":84,"featured_media":1955565,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_swpsp_post_exclude":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"ep_exclude_from_search":false,"footnotes":""},"categories":[121,79],"tags":[25,58],"stellar-product-taxonomy":[157],"class_list":["post-1896517","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-eventbrite-features","category-snippets","tag-customizations","tag-php","stellar-product-taxonomy-eventbrite-tickets"],"acf":[],"taxonomy_info":{"category":[{"value":121,"label":"Eventbrite Tickets"},{"value":79,"label":"Snippets"}],"post_tag":[{"value":25,"label":"Customizations"},{"value":58,"label":"PHP"}],"stellar-product-taxonomy":[{"value":157,"label":"Eventbrite Tickets"}]},"featured_image_src_large":["https:\/\/images.theeventscalendar.com\/kb\/uploads\/2023\/02\/social-share-1024x538.png",1024,538,true],"author_info":{"display_name":"The Events Calendar Team","author_link":"https:\/\/theeventscalendar.com\/knowledgebase\/author\/the_events_calendar_team\/"},"comment_info":0,"category_info":[{"term_id":121,"name":"Eventbrite Tickets","slug":"eventbrite-features","term_group":0,"term_taxonomy_id":121,"taxonomy":"category","description":"","parent":61,"count":5,"filter":"raw","term_order":"0","cat_ID":121,"category_count":5,"category_description":"","cat_name":"Eventbrite Tickets","category_nicename":"eventbrite-features","category_parent":61},{"term_id":79,"name":"Snippets","slug":"snippets","term_group":0,"term_taxonomy_id":79,"taxonomy":"category","description":"","parent":0,"count":23,"filter":"raw","term_order":"0","cat_ID":79,"category_count":23,"category_description":"","cat_name":"Snippets","category_nicename":"snippets","category_parent":0}],"tag_info":[{"term_id":25,"name":"Customizations","slug":"customizations","term_group":0,"term_taxonomy_id":25,"taxonomy":"post_tag","description":"","parent":0,"count":37,"filter":"raw","term_order":"0"},{"term_id":58,"name":"PHP","slug":"php","term_group":0,"term_taxonomy_id":58,"taxonomy":"post_tag","description":"","parent":20,"count":27,"filter":"raw","term_order":"0"}],"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1896517","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/users\/84"}],"replies":[{"embeddable":true,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=1896517"}],"version-history":[{"count":2,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1896517\/revisions"}],"predecessor-version":[{"id":1969557,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1896517\/revisions\/1969557"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/media\/1955565"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=1896517"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=1896517"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=1896517"},{"taxonomy":"stellar-product-taxonomy","embeddable":true,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/stellar-product-taxonomy?post=1896517"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}