{"id":1061434,"date":"2016-01-24T16:44:21","date_gmt":"2016-01-25T00:44:21","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/moving-the-tickets-plus-form-code-crashes-the-site\/"},"modified":"2016-02-01T21:27:18","modified_gmt":"2016-02-02T05:27:18","slug":"moving-the-tickets-plus-form-code-crashes-the-site","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/moving-the-tickets-plus-form-code-crashes-the-site\/","title":{"rendered":"Moving the Tickets Plus form &#039;code&#039; crashes the site"},"content":{"rendered":"<p>I&#8217;ve been trying to move the tickets above the event details. All the forum posts direct to this page https:\/\/theeventscalendar.com\/knowledgebase\/moving-the-ticket-form\/<\/p>\n<p>However when applying the below code, my website crashes &#8211; the whole site is white. Which I resolve by editing the Function.php file back to the way it was.<\/p>\n<blockquote><p>\/*<br \/>\n * Uncomment to Move Ticket Form Below the Event Description<br \/>\n *\/<br \/>\n\/\/tribe_etp_move_tickets_purchase_form( &#8216;tribe_events_single_event_after_the_content&#8217;, 5 );<\/p><\/blockquote>\n<p>I&#8217;m using the Salient Child Theme.<\/p>\n<p>Also, strangely the code to move the RSVP below DOES work.<\/p>\n<blockquote><p>\/**<br \/>\n* Move RSVP Tickets form in events template<br \/>\n*\/<br \/>\nif (class_exists(&#8216;Tribe__Tickets__RSVP&#8217;)) {<br \/>\n    remove_action( &#8216;tribe_events_single_event_after_the_meta&#8217;, array( Tribe__Tickets__RSVP::get_instance(), &#8216;front_end_tickets_form&#8217; ), 5 );<br \/>\n    add_action( &#8216;tribe_events_single_event_before_the_meta&#8217;, array( Tribe__Tickets__RSVP::get_instance(), &#8216;front_end_tickets_form&#8217; ), 5 );<br \/>\n}\n<\/p><\/blockquote>\n<p>The page I&#8217;m currently working on is http:\/\/lunapark.com.au\/event\/matt-harveys-just-for-funny-melbourne-comedy-festival\/2016-02-25\/<\/p>\n<p>But it is relevant for all the events here http:\/\/lunapark.com.au\/events\/<\/p>\n<p>I&#8217;m a PHP coder but can work most things out.<\/p>\n<p>cheers<br \/>\n-Colby<\/p>\n","protected":false},"template":"","class_list":["post-1061434","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 the Tickets Plus form &#039;code&#039; crashes the site -<\/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-the-tickets-plus-form-code-crashes-the-site\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Moving the Tickets Plus form &#039;code&#039; crashes the site -\" \/>\n<meta property=\"og:description\" content=\"I&#8217;ve been trying to move the tickets above the event details. All the forum posts direct to this page https:\/\/theeventscalendar.com\/knowledgebase\/moving-the-ticket-form\/ However when applying the below code, my website crashes &#8211; the whole site is white. Which I resolve by editing the Function.php file back to the way it was. \/* * Uncomment to Move Ticket [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/moving-the-tickets-plus-form-code-crashes-the-site\/\" \/>\n<meta property=\"article:modified_time\" content=\"2016-02-02T05:27:18+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-the-tickets-plus-form-code-crashes-the-site\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/moving-the-tickets-plus-form-code-crashes-the-site\/\",\"name\":\"Moving the Tickets Plus form &#039;code&#039; crashes the site -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-01-25T00:44:21+00:00\",\"dateModified\":\"2016-02-02T05:27:18+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/moving-the-tickets-plus-form-code-crashes-the-site\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/moving-the-tickets-plus-form-code-crashes-the-site\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/moving-the-tickets-plus-form-code-crashes-the-site\/#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 the Tickets Plus form &#039;code&#039; crashes the site\"}]},{\"@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 the Tickets Plus form &#039;code&#039; crashes the site -","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-the-tickets-plus-form-code-crashes-the-site\/","og_locale":"en_US","og_type":"article","og_title":"Moving the Tickets Plus form &#039;code&#039; crashes the site -","og_description":"I&#8217;ve been trying to move the tickets above the event details. All the forum posts direct to this page https:\/\/theeventscalendar.com\/knowledgebase\/moving-the-ticket-form\/ However when applying the below code, my website crashes &#8211; the whole site is white. Which I resolve by editing the Function.php file back to the way it was. \/* * Uncomment to Move Ticket [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/moving-the-tickets-plus-form-code-crashes-the-site\/","article_modified_time":"2016-02-02T05:27:18+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-the-tickets-plus-form-code-crashes-the-site\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/moving-the-tickets-plus-form-code-crashes-the-site\/","name":"Moving the Tickets Plus form &#039;code&#039; crashes the site -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-01-25T00:44:21+00:00","dateModified":"2016-02-02T05:27:18+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/moving-the-tickets-plus-form-code-crashes-the-site\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/moving-the-tickets-plus-form-code-crashes-the-site\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/moving-the-tickets-plus-form-code-crashes-the-site\/#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 the Tickets Plus form &#039;code&#039; crashes the site"}]},{"@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\/1061434","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\/1061434\/revisions"}],"predecessor-version":[{"id":1061544,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1061434\/revisions\/1061544"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1061434"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}