{"id":1516624,"date":"2018-04-26T04:04:27","date_gmt":"2018-04-26T11:04:27","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/hide-price-for-events-displayed-in-list-view\/"},"modified":"2018-04-26T04:07:10","modified_gmt":"2018-04-26T11:07:10","slug":"hide-price-for-events-displayed-in-list-view","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/hide-price-for-events-displayed-in-list-view\/","title":{"rendered":"Hide price for events displayed in list view"},"content":{"rendered":"<p>Hi there,<\/p>\n<p>In the list view, I want to hide the price and number of tickets remaining (crossed out in attached screenshot).<\/p>\n<p>After consulting the Themer\u2019s Guide, in <code>THEME-FOLDER\/tribe-events\/views\/list\/single-event.php<\/code>, I have tried commenting out or deleting the following lines (68&#8211;81):<\/p>\n<pre><code>\n&lt;!-- Event Cost --&gt;\n&lt;?php if ( tribe_get_cost() ) : ?&gt;\n    &lt;div class=&quot;tribe-events-event-cost&quot;&gt;\n        &lt;span class=&quot;ticket-cost&quot;&gt;&lt;?php echo tribe_get_cost( null, true ); ?&gt;&lt;\/span&gt;\n        &lt;?php\n        \/**\n         * Runs after cost is displayed in list style views\n         *\n         * @since 4.5\n         *\/\n        do_action( &#039;tribe_events_inside_cost&#039; )\n        ?&gt;\n    &lt;\/div&gt;\n&lt;?php endif; ?&gt;\n<\/code><\/pre>\n<p>But the price still shows in the list view.<\/p>\n<p>Could you help me find which view template (and which part of that template) I\u2019ll need to customize to remove the price and number of tickets remaining, as in the screenshot?<\/p>\n<p>Thanks in advance for your help.<\/p>\n","protected":false},"template":"","class_list":["post-1516624","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>Hide price for events displayed in list view -<\/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\/hide-price-for-events-displayed-in-list-view\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Hide price for events displayed in list view -\" \/>\n<meta property=\"og:description\" content=\"Hi there, In the list view, I want to hide the price and number of tickets remaining (crossed out in attached screenshot). After consulting the Themer\u2019s Guide, in THEME-FOLDER\/tribe-events\/views\/list\/single-event.php, I have tried commenting out or deleting the following lines (68&#8211;81): &lt;!-- Event Cost --&gt; &lt;?php if ( tribe_get_cost() ) : ?&gt; &lt;div class=&quot;tribe-events-event-cost&quot;&gt; &lt;span class=&quot;ticket-cost&quot;&gt;&lt;?php [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/hide-price-for-events-displayed-in-list-view\/\" \/>\n<meta property=\"article:modified_time\" content=\"2018-04-26T11:07:10+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\/hide-price-for-events-displayed-in-list-view\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/hide-price-for-events-displayed-in-list-view\/\",\"name\":\"Hide price for events displayed in list view -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2018-04-26T11:04:27+00:00\",\"dateModified\":\"2018-04-26T11:07:10+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/hide-price-for-events-displayed-in-list-view\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/hide-price-for-events-displayed-in-list-view\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/hide-price-for-events-displayed-in-list-view\/#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\":\"Hide price for events displayed in list view\"}]},{\"@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":"Hide price for events displayed in list view -","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\/hide-price-for-events-displayed-in-list-view\/","og_locale":"en_US","og_type":"article","og_title":"Hide price for events displayed in list view -","og_description":"Hi there, In the list view, I want to hide the price and number of tickets remaining (crossed out in attached screenshot). After consulting the Themer\u2019s Guide, in THEME-FOLDER\/tribe-events\/views\/list\/single-event.php, I have tried commenting out or deleting the following lines (68&#8211;81): &lt;!-- Event Cost --&gt; &lt;?php if ( tribe_get_cost() ) : ?&gt; &lt;div class=&quot;tribe-events-event-cost&quot;&gt; &lt;span class=&quot;ticket-cost&quot;&gt;&lt;?php [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/hide-price-for-events-displayed-in-list-view\/","article_modified_time":"2018-04-26T11:07:10+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\/hide-price-for-events-displayed-in-list-view\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/hide-price-for-events-displayed-in-list-view\/","name":"Hide price for events displayed in list view -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2018-04-26T11:04:27+00:00","dateModified":"2018-04-26T11:07:10+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/hide-price-for-events-displayed-in-list-view\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/hide-price-for-events-displayed-in-list-view\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/hide-price-for-events-displayed-in-list-view\/#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":"Hide price for events displayed in list view"}]},{"@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\/1516624","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\/1516624\/revisions"}],"predecessor-version":[{"id":1516627,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1516624\/revisions\/1516627"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1516624"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}