{"id":150914,"date":"2014-05-05T15:29:48","date_gmt":"2014-05-05T22:29:48","guid":{"rendered":"http:\/\/tri.be\/support\/forums\/topic\/page-title-changes-to-undefined-when-event-bar-on-event-list-page-submits\/"},"modified":"2014-05-30T07:55:11","modified_gmt":"2014-05-30T14:55:11","slug":"page-title-changes-to-undefined-when-event-bar-on-event-list-page-submits","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/page-title-changes-to-undefined-when-event-bar-on-event-list-page-submits\/","title":{"rendered":"Page title changes to undefined when event bar on event list page submits"},"content":{"rendered":"<p>I did some searching on the forums before I made this and found another person that had a similar problem but never provided enough feedback to get their issue resolved:<br \/>\nhttps:\/\/tri.be\/support\/forums\/topic\/page-title-changes-to-undefined-when-using-browser-back-button\/<\/p>\n<p>I&#8217;m having a similar problem where the title switches to undefined whenever I submit the events bar (not the filter bar plugin).<\/p>\n<p>After some testing of various combinations of disabling themes and plugins I&#8217;ve determined that it only happens when Gravity Forms is enabled and tribe_events_the_header_attributes is not in the list\/content.php view (in my case the template over-ride removed it).<\/p>\n<p>So my testing process went as follows:<br \/>\nI disable GF and keep using my theme without the tribe_events_the_header_attributes.  When I submit the events bar, nothing happens to the page title.<\/p>\n<p>If I enable GF then I get the undefined title.<\/p>\n<p>If I enable GF and include the tribe_events_the_header_attributes function (deleted my template override) then the page title will switch from &#8220;Page Name | Site Name&#8221; to &#8220;Page Name \u00bb Site Name&#8221; when the events bar submits.  The latter value is added to the data-title attribute that is printed by tribe_events_the_header_attributes.<\/p>\n<p>I&#8217;m not sure what the conflict between GF and TEC is so I guess my question would be why is the tribe_events_the_header_attributes required to keep my title correct?<\/p>\n","protected":false},"template":"","class_list":["post-150914","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>Page title changes to undefined when event bar on event list page submits -<\/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\/page-title-changes-to-undefined-when-event-bar-on-event-list-page-submits\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Page title changes to undefined when event bar on event list page submits -\" \/>\n<meta property=\"og:description\" content=\"I did some searching on the forums before I made this and found another person that had a similar problem but never provided enough feedback to get their issue resolved: https:\/\/tri.be\/support\/forums\/topic\/page-title-changes-to-undefined-when-using-browser-back-button\/ I&#8217;m having a similar problem where the title switches to undefined whenever I submit the events bar (not the filter bar plugin). After some [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/page-title-changes-to-undefined-when-event-bar-on-event-list-page-submits\/\" \/>\n<meta property=\"article:modified_time\" content=\"2014-05-30T14:55:11+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\/page-title-changes-to-undefined-when-event-bar-on-event-list-page-submits\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/page-title-changes-to-undefined-when-event-bar-on-event-list-page-submits\/\",\"name\":\"Page title changes to undefined when event bar on event list page submits -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2014-05-05T22:29:48+00:00\",\"dateModified\":\"2014-05-30T14:55:11+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/page-title-changes-to-undefined-when-event-bar-on-event-list-page-submits\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/page-title-changes-to-undefined-when-event-bar-on-event-list-page-submits\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/page-title-changes-to-undefined-when-event-bar-on-event-list-page-submits\/#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\":\"Page title changes to undefined when event bar on event list page submits\"}]},{\"@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":"Page title changes to undefined when event bar on event list page submits -","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\/page-title-changes-to-undefined-when-event-bar-on-event-list-page-submits\/","og_locale":"en_US","og_type":"article","og_title":"Page title changes to undefined when event bar on event list page submits -","og_description":"I did some searching on the forums before I made this and found another person that had a similar problem but never provided enough feedback to get their issue resolved: https:\/\/tri.be\/support\/forums\/topic\/page-title-changes-to-undefined-when-using-browser-back-button\/ I&#8217;m having a similar problem where the title switches to undefined whenever I submit the events bar (not the filter bar plugin). After some [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/page-title-changes-to-undefined-when-event-bar-on-event-list-page-submits\/","article_modified_time":"2014-05-30T14:55:11+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\/page-title-changes-to-undefined-when-event-bar-on-event-list-page-submits\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/page-title-changes-to-undefined-when-event-bar-on-event-list-page-submits\/","name":"Page title changes to undefined when event bar on event list page submits -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2014-05-05T22:29:48+00:00","dateModified":"2014-05-30T14:55:11+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/page-title-changes-to-undefined-when-event-bar-on-event-list-page-submits\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/page-title-changes-to-undefined-when-event-bar-on-event-list-page-submits\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/page-title-changes-to-undefined-when-event-bar-on-event-list-page-submits\/#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":"Page title changes to undefined when event bar on event list page submits"}]},{"@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\/150914","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\/150914\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=150914"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}