{"id":1006927,"date":"2015-09-20T20:56:28","date_gmt":"2015-09-21T03:56:28","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/functions-arent-changing-labels-or-words-in-the-list-widget\/"},"modified":"2015-09-25T07:31:42","modified_gmt":"2015-09-25T14:31:42","slug":"functions-arent-changing-labels-or-words-in-the-list-widget","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/functions-arent-changing-labels-or-words-in-the-list-widget\/","title":{"rendered":"Functions aren&#039;t changing labels or words in the List Widget"},"content":{"rendered":"<p>So I&#8217;m using the following functions:<\/p>\n<pre><code>\n\/*\n* CHANGING ANY TEXT (STRING) IN THE EVENTS CALENDAR\n*\/\nfunction tribe_custom_theme_text ( $translations, $text, $domain ) {\n\/\/ Put your custom text here in a key =&gt; value pair\n\/\/ Example: &#039;Text you want to change&#039; =&gt; &#039;This is what it will be changed to&#039;\n\/\/ The text you want to change is the key, and it is case-sensitive\n\/\/ The text you want to change it to is the value\n\/\/ You can freely add or remove key =&gt; values, but make sure to separate them with a comma\n\/\/ This example changes the label \u201cVenue\u201d to \u201cLocation\u201d, and \u201cRelated Events\u201d to \u201cSimilar Events\u201d\n$custom_text = array(\n&#039;Venue&#039; =&gt; &#039;Location&#039;,\n&#039;Venues&#039; =&gt; &#039;Locations&#039;,\n&#039;Organizers&#039; =&gt; &#039;Instructors&#039;,\n&#039;Organizer&#039; =&gt; &#039;Instructor&#039;\n);\n\/\/ If this text domain starts with \u201ctribe-\u201c, and we have replacement text\nif(strpos($domain, &#039;the-&#039;) === 0 &amp;&amp; array_key_exists($text, $custom_text) ) {\n$text = $custom_text[$text];\n}\nreturn $text;\n}\nadd_filter(&#039;gettext&#039;, &#039;tribe_custom_theme_text&#039;, 20, 3);\n\n\/\/ Change VENUE to LOCATION\nfunction filter_translations($translation, $text, $domain) {\n    if ($domain == &#039;the-events-calendar&#039;) {\n        switch ($text) {\n            case &#039;Organizer&#039;:\n                $translation = &#039;Instructor&#039;;\n                break;\n        }\n    }\n  \n    return $translation;\n}\nadd_filter(&#039;gettext&#039;, &#039;filter_translations&#039;, 10, 3);\n<\/code><\/pre>\n<p>However, the changes aren&#8217;t being made to the List Widget.<\/p>\n","protected":false},"template":"","class_list":["post-1006927","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>Functions aren&#039;t changing labels or words in the List Widget -<\/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\/functions-arent-changing-labels-or-words-in-the-list-widget\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Functions aren&#039;t changing labels or words in the List Widget -\" \/>\n<meta property=\"og:description\" content=\"So I&#8217;m using the following functions: \/* * CHANGING ANY TEXT (STRING) IN THE EVENTS CALENDAR *\/ function tribe_custom_theme_text ( $translations, $text, $domain ) { \/\/ Put your custom text here in a key =&gt; value pair \/\/ Example: &#039;Text you want to change&#039; =&gt; &#039;This is what it will be changed to&#039; \/\/ The [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/functions-arent-changing-labels-or-words-in-the-list-widget\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-09-25T14:31:42+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\/functions-arent-changing-labels-or-words-in-the-list-widget\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/functions-arent-changing-labels-or-words-in-the-list-widget\/\",\"name\":\"Functions aren&#039;t changing labels or words in the List Widget -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2015-09-21T03:56:28+00:00\",\"dateModified\":\"2015-09-25T14:31:42+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/functions-arent-changing-labels-or-words-in-the-list-widget\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/functions-arent-changing-labels-or-words-in-the-list-widget\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/functions-arent-changing-labels-or-words-in-the-list-widget\/#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\":\"Calendar Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Events Calendar PRO\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Functions aren&#039;t changing labels or words in the List Widget\"}]},{\"@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":"Functions aren&#039;t changing labels or words in the List Widget -","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\/functions-arent-changing-labels-or-words-in-the-list-widget\/","og_locale":"en_US","og_type":"article","og_title":"Functions aren&#039;t changing labels or words in the List Widget -","og_description":"So I&#8217;m using the following functions: \/* * CHANGING ANY TEXT (STRING) IN THE EVENTS CALENDAR *\/ function tribe_custom_theme_text ( $translations, $text, $domain ) { \/\/ Put your custom text here in a key =&gt; value pair \/\/ Example: &#039;Text you want to change&#039; =&gt; &#039;This is what it will be changed to&#039; \/\/ The [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/functions-arent-changing-labels-or-words-in-the-list-widget\/","article_modified_time":"2015-09-25T14:31:42+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\/functions-arent-changing-labels-or-words-in-the-list-widget\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/functions-arent-changing-labels-or-words-in-the-list-widget\/","name":"Functions aren&#039;t changing labels or words in the List Widget -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2015-09-21T03:56:28+00:00","dateModified":"2015-09-25T14:31:42+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/functions-arent-changing-labels-or-words-in-the-list-widget\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/functions-arent-changing-labels-or-words-in-the-list-widget\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/functions-arent-changing-labels-or-words-in-the-list-widget\/#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":"Calendar Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/"},{"@type":"ListItem","position":4,"name":"Events Calendar PRO","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/"},{"@type":"ListItem","position":5,"name":"Functions aren&#039;t changing labels or words in the List Widget"}]},{"@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\/1006927","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\/1006927\/revisions"}],"predecessor-version":[{"id":1007502,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1006927\/revisions\/1007502"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1006927"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}