{"id":1081352,"date":"2016-02-24T04:44:25","date_gmt":"2016-02-24T12:44:25","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/moving-tickets-from-bottom-of-sidebar-to-the-top\/"},"modified":"2016-02-24T07:11:46","modified_gmt":"2016-02-24T15:11:46","slug":"moving-tickets-from-bottom-of-sidebar-to-the-top","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/moving-tickets-from-bottom-of-sidebar-to-the-top\/","title":{"rendered":"Moving &#039;Tickets&#039; from bottom of sidebar to the top"},"content":{"rendered":"<p>Hi,<\/p>\n<p>I have tried adding the code at https:\/\/theeventscalendar.com\/knowledgebase\/moving-the-ticket-form\/ to my theme\u2019s functions.php file but I get the following error:<\/p>\n<p>Fatal error: Call to undefined function tribe_etp_move_tickets_purchase_form() in functions.php on line 605<\/p>\n<p>Can anyone help? I just want to move the \u2018Tickets\u2019 section at the bottom of the right sidebar to the top of the sidebar (http:\/\/catthorpemanor.co.uk\/event\/game-of-groans-murder-mystery-saturday-16th-april\/).<\/p>\n<p>N.B. I have added the following code to my theme&#8217;s functions.php file &#8211; the error code has gone but it hasn&#8217;t moved the Tickets section:<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;<\/p>\n<p>\/*<br \/>\n * Moves the front-end ticket purchase form, accepts WP action\/hook and optional hook priority<br \/>\n *<br \/>\n * @param $ticket_location_action WP Action\/hook to display the ticket form at<br \/>\n * @param $ticket_location_priority Priority for the WP Action<br \/>\n *\/<br \/>\nfunction tribe_etp_move_tickets_purchase_form ( $ticket_location_action, $ticket_location_priority = 10 ) {<br \/>\n    $etp_classes = array(<br \/>\n        &#8216;Tribe__Tickets_Plus__Commerce__EDD__Main&#8217;,<br \/>\n    \/\/    &#8216;Tribe__Tickets_Plus__Commerce__Shopp__Main&#8217;, \/\/ As of ETP v4.0 Shopp will generate errors when referenced, if not active. Uncomment this line if you have Shopp Active<br \/>\n        &#8216;Tribe__Tickets_Plus__Commerce__WPEC__Main&#8217;,<br \/>\n        &#8216;Tribe__Tickets_Plus__Commerce__WooCommerce__Main&#8217;<br \/>\n    );<br \/>\n    foreach ( $etp_classes as $ticket_class ) {<br \/>\n        if ( ! class_exists( $ticket_class ) ) break;<br \/>\n        $form_display_function = array( $ticket_class::get_instance(), &#8216;front_end_tickets_form&#8217; );<br \/>\n        if ( has_action ( &#8216;tribe_events_single_event_after_the_meta&#8217;, $form_display_function ) ) {<br \/>\n            remove_action( &#8216;tribe_events_single_event_after_the_meta&#8217;, $form_display_function, 5 );<br \/>\n            add_action( $ticket_location_action, $form_display_function, $ticket_location_priority );<br \/>\n        }<br \/>\n    }<br \/>\n}<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;<\/p>\n<p>Thanks.<\/p>\n<p>Paul<\/p>\n","protected":false},"template":"","class_list":["post-1081352","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Moving &#039;Tickets&#039; from bottom of sidebar to the top -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/moving-tickets-from-bottom-of-sidebar-to-the-top\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Moving &#039;Tickets&#039; from bottom of sidebar to the top -\" \/>\n<meta property=\"og:description\" content=\"Hi, I have tried adding the code at https:\/\/theeventscalendar.com\/knowledgebase\/moving-the-ticket-form\/ to my theme\u2019s functions.php file but I get the following error: Fatal error: Call to undefined function tribe_etp_move_tickets_purchase_form() in functions.php on line 605 Can anyone help? I just want to move the \u2018Tickets\u2019 section at the bottom of the right sidebar to the top of the [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/moving-tickets-from-bottom-of-sidebar-to-the-top\/\" \/>\n<meta property=\"article:modified_time\" content=\"2016-02-24T15:11:46+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/moving-tickets-from-bottom-of-sidebar-to-the-top\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/moving-tickets-from-bottom-of-sidebar-to-the-top\/\",\"name\":\"Moving &#039;Tickets&#039; from bottom of sidebar to the top -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-02-24T12:44:25+00:00\",\"dateModified\":\"2016-02-24T15:11:46+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/moving-tickets-from-bottom-of-sidebar-to-the-top\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/moving-tickets-from-bottom-of-sidebar-to-the-top\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/moving-tickets-from-bottom-of-sidebar-to-the-top\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Ticket Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Event Tickets Plus\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/event-tickets-plus\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Moving &#039;Tickets&#039; from bottom of sidebar to the top\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Moving &#039;Tickets&#039; from bottom of sidebar to the top -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/moving-tickets-from-bottom-of-sidebar-to-the-top\/","og_locale":"en_US","og_type":"article","og_title":"Moving &#039;Tickets&#039; from bottom of sidebar to the top -","og_description":"Hi, I have tried adding the code at https:\/\/theeventscalendar.com\/knowledgebase\/moving-the-ticket-form\/ to my theme\u2019s functions.php file but I get the following error: Fatal error: Call to undefined function tribe_etp_move_tickets_purchase_form() in functions.php on line 605 Can anyone help? I just want to move the \u2018Tickets\u2019 section at the bottom of the right sidebar to the top of the [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/moving-tickets-from-bottom-of-sidebar-to-the-top\/","article_modified_time":"2016-02-24T15:11:46+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/moving-tickets-from-bottom-of-sidebar-to-the-top\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/moving-tickets-from-bottom-of-sidebar-to-the-top\/","name":"Moving &#039;Tickets&#039; from bottom of sidebar to the top -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-02-24T12:44:25+00:00","dateModified":"2016-02-24T15:11:46+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/moving-tickets-from-bottom-of-sidebar-to-the-top\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/moving-tickets-from-bottom-of-sidebar-to-the-top\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/moving-tickets-from-bottom-of-sidebar-to-the-top\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Ticket Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/"},{"@type":"ListItem","position":4,"name":"Event Tickets Plus","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/event-tickets-plus\/"},{"@type":"ListItem","position":5,"name":"Moving &#039;Tickets&#039; from bottom of sidebar to the top"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1081352","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1081352\/revisions"}],"predecessor-version":[{"id":1081354,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1081352\/revisions\/1081354"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1081352"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}