{"id":1084068,"date":"2016-03-01T15:14:52","date_gmt":"2016-03-01T23:14:52","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/attempting-to-move-tickets-under-event-description\/"},"modified":"2016-03-17T09:35:04","modified_gmt":"2016-03-17T16:35:04","slug":"attempting-to-move-tickets-under-event-description","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/attempting-to-move-tickets-under-event-description\/","title":{"rendered":"Attempting to move Tickets under Event Description"},"content":{"rendered":"<p>I tried to follow the knowledgebase directions for moving the tickets below the event description, but got an error on the functions.php when attempting to save the file.<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/a7e.363.myftpupload.com\/wp-content\/uploads\/2016\/03\/Screen-Shot-2016-03-01-at-4.10.29-PM-1.png\" alt=\"screenshot\" \/><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/a7e.363.myftpupload.com\/wp-content\/uploads\/2016\/03\/Screen-Shot-2016-03-01-at-4.03.59-PM-2.png\" alt=\"screenshot 2\" \/><\/p>\n<p>The code I used was:<\/p>\n<pre><code>&lt;?php\n\n\/*\n * Moves the front-end ticket purchase form, accepts WP action\/hook and optional hook priority\n * \n * @param $ticket_location_action WP Action\/hook to display the ticket form at\n * @param $ticket_location_priority Priority for the WP Action\n *\/\nfunction tribe_etp_move_tickets_purchase_form ( $ticket_location_action, $ticket_location_priority = 10 ) {\n\t$etp_classes = array(\n\t\t&#039;Tribe__Tickets_Plus__Commerce__EDD__Main&#039;,\n\t\/\/\t&#039;Tribe__Tickets_Plus__Commerce__Shopp__Main&#039;, \/\/ As of ETP v4.0 Shopp will generate errors when referenced, if not active. Uncomment this line if you have Shopp Active\n\t\t&#039;Tribe__Tickets_Plus__Commerce__WPEC__Main&#039;,\n\t\t&#039;Tribe__Tickets_Plus__Commerce__WooCommerce__Main&#039;\n\t);\n\n\tforeach ( $etp_classes as $ticket_class ) {\n\t\tif ( ! class_exists( $ticket_class ) ) break;\n\n\t\t$form_display_function = array( $ticket_class::get_instance(), &#039;front_end_tickets_form&#039; );\n\n\t\tif ( has_action ( &#039;tribe_events_single_event_after_the_meta&#039;, $form_display_function ) ) {\n\t\t\tremove_action( &#039;tribe_events_single_event_after_the_meta&#039;, $form_display_function, 5 );\n\t\t\tadd_action( $ticket_location_action, $form_display_function, $ticket_location_priority );\n\t\t}\n\t}\n}\n\n\/*\n * TO MOVE THE TICKET FORM UNCOMMENT ONE OF THE FOLLOWING BY REMOVING THE \/\/\n *\/\n\n\/*\n * Uncomment to Move Ticket Form Below Related Events\n *\/\n\/\/tribe_etp_move_tickets_purchase_form( &#039;tribe_events_single_event_after_the_meta&#039;, 20 );\n\n\/*\n * Uncomment to Move Ticket Form Below the Event Description\n *\/\ntribe_etp_move_tickets_purchase_form( &#039;tribe_events_single_event_after_the_content&#039;, 5 );\n\n\/*\n * Uncomment to Move Ticket Form Above the Event Description\n *\/\n\/\/tribe_etp_move_tickets_purchase_form( &#039;tribe_events_single_event_before_the_content&#039; );<\/code><\/pre>\n<p>I put it at the bottom of the functions.php. I&#8217;m using the Salient theme. I&#8217;m not exactly sure that I put the code in the right place. It worked, after giving me an error message(screenshot 1), but then the site crashed and showed the second error (screenshot 2).<\/p>\n<p>Thank you for your help!!<\/p>\n","protected":false},"template":"","class_list":["post-1084068","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>Attempting to move Tickets under Event Description -<\/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\/attempting-to-move-tickets-under-event-description\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Attempting to move Tickets under Event Description -\" \/>\n<meta property=\"og:description\" content=\"I tried to follow the knowledgebase directions for moving the tickets below the event description, but got an error on the functions.php when attempting to save the file. The code I used was: &lt;?php \/* * Moves the front-end ticket purchase form, accepts WP action\/hook and optional hook priority * * @param $ticket_location_action WP Action\/hook [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/attempting-to-move-tickets-under-event-description\/\" \/>\n<meta property=\"article:modified_time\" content=\"2016-03-17T16:35:04+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/a7e.363.myftpupload.com\/wp-content\/uploads\/2016\/03\/Screen-Shot-2016-03-01-at-4.10.29-PM-1.png\" \/>\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=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/attempting-to-move-tickets-under-event-description\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/attempting-to-move-tickets-under-event-description\/\",\"name\":\"Attempting to move Tickets under Event Description -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/attempting-to-move-tickets-under-event-description\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/attempting-to-move-tickets-under-event-description\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/a7e.363.myftpupload.com\/wp-content\/uploads\/2016\/03\/Screen-Shot-2016-03-01-at-4.10.29-PM-1.png\",\"datePublished\":\"2016-03-01T23:14:52+00:00\",\"dateModified\":\"2016-03-17T16:35:04+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/attempting-to-move-tickets-under-event-description\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/attempting-to-move-tickets-under-event-description\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/attempting-to-move-tickets-under-event-description\/#primaryimage\",\"url\":\"http:\/\/a7e.363.myftpupload.com\/wp-content\/uploads\/2016\/03\/Screen-Shot-2016-03-01-at-4.10.29-PM-1.png\",\"contentUrl\":\"http:\/\/a7e.363.myftpupload.com\/wp-content\/uploads\/2016\/03\/Screen-Shot-2016-03-01-at-4.10.29-PM-1.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/attempting-to-move-tickets-under-event-description\/#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\":\"Welcome!\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/_welcome\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Pre-Sales Questions\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/_welcome\/pre-sales-questions\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Attempting to move Tickets under Event Description\"}]},{\"@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":"Attempting to move Tickets under Event Description -","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\/attempting-to-move-tickets-under-event-description\/","og_locale":"en_US","og_type":"article","og_title":"Attempting to move Tickets under Event Description -","og_description":"I tried to follow the knowledgebase directions for moving the tickets below the event description, but got an error on the functions.php when attempting to save the file. The code I used was: &lt;?php \/* * Moves the front-end ticket purchase form, accepts WP action\/hook and optional hook priority * * @param $ticket_location_action WP Action\/hook [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/attempting-to-move-tickets-under-event-description\/","article_modified_time":"2016-03-17T16:35:04+00:00","og_image":[{"url":"http:\/\/a7e.363.myftpupload.com\/wp-content\/uploads\/2016\/03\/Screen-Shot-2016-03-01-at-4.10.29-PM-1.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/attempting-to-move-tickets-under-event-description\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/attempting-to-move-tickets-under-event-description\/","name":"Attempting to move Tickets under Event Description -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/attempting-to-move-tickets-under-event-description\/#primaryimage"},"image":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/attempting-to-move-tickets-under-event-description\/#primaryimage"},"thumbnailUrl":"http:\/\/a7e.363.myftpupload.com\/wp-content\/uploads\/2016\/03\/Screen-Shot-2016-03-01-at-4.10.29-PM-1.png","datePublished":"2016-03-01T23:14:52+00:00","dateModified":"2016-03-17T16:35:04+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/attempting-to-move-tickets-under-event-description\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/attempting-to-move-tickets-under-event-description\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/attempting-to-move-tickets-under-event-description\/#primaryimage","url":"http:\/\/a7e.363.myftpupload.com\/wp-content\/uploads\/2016\/03\/Screen-Shot-2016-03-01-at-4.10.29-PM-1.png","contentUrl":"http:\/\/a7e.363.myftpupload.com\/wp-content\/uploads\/2016\/03\/Screen-Shot-2016-03-01-at-4.10.29-PM-1.png"},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/attempting-to-move-tickets-under-event-description\/#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":"Welcome!","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/_welcome\/"},{"@type":"ListItem","position":4,"name":"Pre-Sales Questions","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/_welcome\/pre-sales-questions\/"},{"@type":"ListItem","position":5,"name":"Attempting to move Tickets under Event Description"}]},{"@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\/1084068","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":2,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1084068\/revisions"}],"predecessor-version":[{"id":1084360,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1084068\/revisions\/1084360"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1084068"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}