{"id":1110242,"date":"2016-05-03T16:48:29","date_gmt":"2016-05-03T23:48:29","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/changing-tribe-events-notices\/"},"modified":"2016-05-04T04:46:49","modified_gmt":"2016-05-04T11:46:49","slug":"changing-tribe-events-notices","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/changing-tribe-events-notices\/","title":{"rendered":"Changing tribe-events-notices"},"content":{"rendered":"<p>I have tried changing the notice &#8220;There were no results found.&#8221; using the code from the related thread below and putting that into my theme&#8217;s functions.php file:<\/p>\n<p><code><br \/>\nadd_filter( 'tribe_events_the_notices', 'customize_notice', 10, 2 );<br \/>\nfunction customize_notice( $html, $notices ) {<br \/>\n\t\/\/If text is found in notice, then replace it<br \/>\n\tif( stristr( $html, 'There were no results found.' ) ) {<br \/>\n\t\t\/\/Customize the message as needed<br \/>\n\t\t$html = str_replace( 'There were no results found.', 'We are continually working to add additional dates and\/or locations for upcoming markets.  Be sure to check back for additional event dates &amp; details!', $html );<br \/>\n\t}<\/p>\n<p>\treturn $html;<br \/>\n}<br \/>\n<\/code><\/p>\n<p>Unfortunately this code does not work.  Any ideas how I can change the language of that?<\/p>\n<p>RELATED THREAD: https:\/\/theeventscalendar.com\/support\/forums\/topic\/change-the-text-for-tribe_events_the_notices-on-events-that-have-passed\/<\/p>\n","protected":false},"template":"","class_list":["post-1110242","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>Changing tribe-events-notices -<\/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\/changing-tribe-events-notices\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Changing tribe-events-notices -\" \/>\n<meta property=\"og:description\" content=\"I have tried changing the notice &#8220;There were no results found.&#8221; using the code from the related thread below and putting that into my theme&#8217;s functions.php file: add_filter( &#039;tribe_events_the_notices&#039;, &#039;customize_notice&#039;, 10, 2 ); function customize_notice( $html, $notices ) { \/\/If text is found in notice, then replace it if( stristr( $html, &#039;There were no results [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/changing-tribe-events-notices\/\" \/>\n<meta property=\"article:modified_time\" content=\"2016-05-04T11:46:49+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\/changing-tribe-events-notices\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/changing-tribe-events-notices\/\",\"name\":\"Changing tribe-events-notices -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-05-03T23:48:29+00:00\",\"dateModified\":\"2016-05-04T11:46:49+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/changing-tribe-events-notices\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/changing-tribe-events-notices\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/changing-tribe-events-notices\/#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\":\"Additional Help\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/others\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Translations\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/others\/translation\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Changing tribe-events-notices\"}]},{\"@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":"Changing tribe-events-notices -","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\/changing-tribe-events-notices\/","og_locale":"en_US","og_type":"article","og_title":"Changing tribe-events-notices -","og_description":"I have tried changing the notice &#8220;There were no results found.&#8221; using the code from the related thread below and putting that into my theme&#8217;s functions.php file: add_filter( 'tribe_events_the_notices', 'customize_notice', 10, 2 ); function customize_notice( $html, $notices ) { \/\/If text is found in notice, then replace it if( stristr( $html, 'There were no results [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/changing-tribe-events-notices\/","article_modified_time":"2016-05-04T11:46:49+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\/changing-tribe-events-notices\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/changing-tribe-events-notices\/","name":"Changing tribe-events-notices -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-05-03T23:48:29+00:00","dateModified":"2016-05-04T11:46:49+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/changing-tribe-events-notices\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/changing-tribe-events-notices\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/changing-tribe-events-notices\/#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":"Additional Help","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/others\/"},{"@type":"ListItem","position":4,"name":"Translations","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/others\/translation\/"},{"@type":"ListItem","position":5,"name":"Changing tribe-events-notices"}]},{"@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\/1110242","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\/1110242\/revisions"}],"predecessor-version":[{"id":1110263,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1110242\/revisions\/1110263"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1110242"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}