{"id":1176207,"date":"2016-10-13T12:31:34","date_gmt":"2016-10-13T19:31:34","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/change-label-in-search-bar\/"},"modified":"2016-10-13T12:31:34","modified_gmt":"2016-10-13T19:31:34","slug":"change-label-in-search-bar","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/change-label-in-search-bar\/","title":{"rendered":"Change label in search bar"},"content":{"rendered":"<p>I am trying to change the label in the search bar from &#8220;Search&#8221; to &#8220;Contains the word or name:&#8221;. I am following instructions found in other threads and added this snippet to my theme&#8217;s functions.php file: <\/p>\n<pre><code>\/\/ Translate labels in Events Calendar Pro search bar \n\nadd_filter(&#039;gettext&#039;, &#039;theme_filter_text&#039;, 10, 3);\n\nfunction theme_filter_text( $translations, $text, $domain ) {\n \n\t\/\/ Copy and modify the following if {} statement to replace multiple blocks of text\n\t\/\/ Match the text you want you want to translate, preferably also match the text domain\n        if($text === &#039;Search&#039; &amp;&amp; $domain === &#039;tribe-events-calendar&#039;) {\n\n\t\t\/\/ The custom text you want instead\n                $text = &#039;Contains the word or name:&#039;;\n\n        }\n \n        return $text;\n}<\/code><\/pre>\n<p>It&#8217;s not having any effect. Does it belong in functions.php? Is the domain &#8216;tribe-events-calendar&#8217; correct even if I am using the Events Calendar Pro? I have double checked the capitalization of the term I want to replace and it&#8217;s accurate. Thanks for any additional guidance you can offer. <\/p>\n","protected":false},"template":"","class_list":["post-1176207","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>Change label in search bar -<\/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\/change-label-in-search-bar\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Change label in search bar -\" \/>\n<meta property=\"og:description\" content=\"I am trying to change the label in the search bar from &#8220;Search&#8221; to &#8220;Contains the word or name:&#8221;. I am following instructions found in other threads and added this snippet to my theme&#8217;s functions.php file: \/\/ Translate labels in Events Calendar Pro search bar add_filter(&#039;gettext&#039;, &#039;theme_filter_text&#039;, 10, 3); function theme_filter_text( $translations, $text, $domain ) [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/change-label-in-search-bar\/\" \/>\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\/change-label-in-search-bar\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/change-label-in-search-bar\/\",\"name\":\"Change label in search bar -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-10-13T19:31:34+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/change-label-in-search-bar\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/change-label-in-search-bar\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/change-label-in-search-bar\/#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\":\"Change label in search bar\"}]},{\"@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":"Change label in search bar -","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\/change-label-in-search-bar\/","og_locale":"en_US","og_type":"article","og_title":"Change label in search bar -","og_description":"I am trying to change the label in the search bar from &#8220;Search&#8221; to &#8220;Contains the word or name:&#8221;. I am following instructions found in other threads and added this snippet to my theme&#8217;s functions.php file: \/\/ Translate labels in Events Calendar Pro search bar add_filter(&#039;gettext&#039;, &#039;theme_filter_text&#039;, 10, 3); function theme_filter_text( $translations, $text, $domain ) [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/change-label-in-search-bar\/","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\/change-label-in-search-bar\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/change-label-in-search-bar\/","name":"Change label in search bar -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-10-13T19:31:34+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/change-label-in-search-bar\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/change-label-in-search-bar\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/change-label-in-search-bar\/#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":"Change label in search bar"}]},{"@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\/1176207","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\/1176207\/revisions"}],"predecessor-version":[{"id":1180010,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1176207\/revisions\/1180010"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1176207"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}