{"id":1083002,"date":"2016-02-27T14:32:48","date_gmt":"2016-02-27T22:32:48","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/theme-conflict-any-workaround-possible\/"},"modified":"2016-03-15T09:35:03","modified_gmt":"2016-03-15T16:35:03","slug":"theme-conflict-any-workaround-possible","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/theme-conflict-any-workaround-possible\/","title":{"rendered":"Theme conflict &#8211; any workaround possible?"},"content":{"rendered":"<p>Hi,<\/p>\n<p>I had a problem with my google maps snippet not being visible but could not figure out why &#8211; see earlier thread: https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-maps-snippet-not-showing\/<\/p>\n<p>After a discussion with the theme developers it turned out to be caused by the inputting of the following code in to functions.php:<\/p>\n<p>function modify_bar_label( $translated_text, $text, $domain ) {<br \/>\n    switch ( $translated_text ) {<br \/>\n        case &#8216;Near&#8217; :<br \/>\n            $translated_text = __( &#8216;Search By Postcode&#8217;, &#8216;tribe-events-calendar-pro&#8217; );<br \/>\n            break;<br \/>\n    }<br \/>\n    return $translated_text;<br \/>\n}<br \/>\nadd_filter( &#8216;gettext&#8217;, &#8216;modify_bar_label&#8217;, 20, 3 );<\/p>\n<p>This was done to change the text on the filter bar from &#8216;Near&#8217; to &#8216;Search by postcode&#8217; so that users could more easily understand what this part of the filter bar is for. Is there another code that would achieve the same effect which could be used? I am hoping to find a solution where I can change the text without the google maps snippet on each event disappearing.<\/p>\n<p>Many thanks<\/p>\n<p>James<\/p>\n","protected":false},"template":"","class_list":["post-1083002","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>Theme conflict - any workaround possible? -<\/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\/theme-conflict-any-workaround-possible\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Theme conflict - any workaround possible? -\" \/>\n<meta property=\"og:description\" content=\"Hi, I had a problem with my google maps snippet not being visible but could not figure out why &#8211; see earlier thread: https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-maps-snippet-not-showing\/ After a discussion with the theme developers it turned out to be caused by the inputting of the following code in to functions.php: function modify_bar_label( $translated_text, $text, $domain ) { switch [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/theme-conflict-any-workaround-possible\/\" \/>\n<meta property=\"article:modified_time\" content=\"2016-03-15T16:35:03+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\/theme-conflict-any-workaround-possible\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/theme-conflict-any-workaround-possible\/\",\"name\":\"Theme conflict - any workaround possible? -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-02-27T22:32:48+00:00\",\"dateModified\":\"2016-03-15T16:35:03+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/theme-conflict-any-workaround-possible\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/theme-conflict-any-workaround-possible\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/theme-conflict-any-workaround-possible\/#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\":\"Community Events\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/community-events\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Theme conflict &#8211; any workaround possible?\"}]},{\"@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":"Theme conflict - any workaround possible? -","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\/theme-conflict-any-workaround-possible\/","og_locale":"en_US","og_type":"article","og_title":"Theme conflict - any workaround possible? -","og_description":"Hi, I had a problem with my google maps snippet not being visible but could not figure out why &#8211; see earlier thread: https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-maps-snippet-not-showing\/ After a discussion with the theme developers it turned out to be caused by the inputting of the following code in to functions.php: function modify_bar_label( $translated_text, $text, $domain ) { switch [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/theme-conflict-any-workaround-possible\/","article_modified_time":"2016-03-15T16:35:03+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\/theme-conflict-any-workaround-possible\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/theme-conflict-any-workaround-possible\/","name":"Theme conflict - any workaround possible? -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-02-27T22:32:48+00:00","dateModified":"2016-03-15T16:35:03+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/theme-conflict-any-workaround-possible\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/theme-conflict-any-workaround-possible\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/theme-conflict-any-workaround-possible\/#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":"Community Events","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/community-events\/"},{"@type":"ListItem","position":5,"name":"Theme conflict &#8211; any workaround possible?"}]},{"@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\/1083002","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\/1083002\/revisions"}],"predecessor-version":[{"id":1083278,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1083002\/revisions\/1083278"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1083002"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}