{"id":1455813,"date":"2018-02-16T14:12:02","date_gmt":"2018-02-16T22:12:02","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/remove-free-from-event-list-and-event-details\/"},"modified":"2018-02-16T14:12:02","modified_gmt":"2018-02-16T22:12:02","slug":"remove-free-from-event-list-and-event-details","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/remove-free-from-event-list-and-event-details\/","title":{"rendered":"Remove &quot;Free&quot; from event list and event details"},"content":{"rendered":"<p>I have several events that are free and the client would like to remove that wording both from the events list and individual event page.<\/p>\n<p>I found this thread that was closed: https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-do-you-remove-free-from-list-view-when-using-free-event-tickets-plugin\/<\/p>\n<p>I inserted the snippet from that thread into my functions.php and it removed the words Free, the button to click through to the event, and the price of events that were not free. I think that snippet needs a revision and I was hoping someone could provide it.<\/p>\n<p>`\/*<br \/>\n * The Events Calendar &#8211; Make code empty if it&#8217;s 0 or Free<br \/>\n*\/<br \/>\nadd_filter ( &#8216;tribe_get_cost&#8217;, &#8216;tribe_not_show_free&#8217;, 10, 3 );<br \/>\nfunction tribe_not_show_free ( $cost, $post_id, $with_currency_symbol ) {<\/p>\n<pre><code>if ( $cost == 0 || $cost == 'Free' ) {\n    $cost = '';\n}\nreturn $cost;\n<\/code><\/pre>\n<p>}`<\/p>\n","protected":false},"template":"","class_list":["post-1455813","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>Remove &quot;Free&quot; from event list and event details -<\/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\/remove-free-from-event-list-and-event-details\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Remove &quot;Free&quot; from event list and event details -\" \/>\n<meta property=\"og:description\" content=\"I have several events that are free and the client would like to remove that wording both from the events list and individual event page. I found this thread that was closed: https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-do-you-remove-free-from-list-view-when-using-free-event-tickets-plugin\/ I inserted the snippet from that thread into my functions.php and it removed the words Free, the button to click through to [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/remove-free-from-event-list-and-event-details\/\" \/>\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\/remove-free-from-event-list-and-event-details\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/remove-free-from-event-list-and-event-details\/\",\"name\":\"Remove &quot;Free&quot; from event list and event details -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2018-02-16T22:12:02+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/remove-free-from-event-list-and-event-details\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/remove-free-from-event-list-and-event-details\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/remove-free-from-event-list-and-event-details\/#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\":\"Remove &quot;Free&quot; from event list and event details\"}]},{\"@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":"Remove &quot;Free&quot; from event list and event details -","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\/remove-free-from-event-list-and-event-details\/","og_locale":"en_US","og_type":"article","og_title":"Remove &quot;Free&quot; from event list and event details -","og_description":"I have several events that are free and the client would like to remove that wording both from the events list and individual event page. I found this thread that was closed: https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-do-you-remove-free-from-list-view-when-using-free-event-tickets-plugin\/ I inserted the snippet from that thread into my functions.php and it removed the words Free, the button to click through to [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/remove-free-from-event-list-and-event-details\/","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\/remove-free-from-event-list-and-event-details\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/remove-free-from-event-list-and-event-details\/","name":"Remove &quot;Free&quot; from event list and event details -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2018-02-16T22:12:02+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/remove-free-from-event-list-and-event-details\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/remove-free-from-event-list-and-event-details\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/remove-free-from-event-list-and-event-details\/#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":"Remove &quot;Free&quot; from event list and event details"}]},{"@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\/1455813","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":0,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1455813\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1455813"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}