Home › Forums › Calendar Products › Events Calendar PRO › Page title changes to undefined when event bar on event list page submits
- This topic has 3 replies, 3 voices, and was last updated 11 years, 10 months ago by
Casey D.
-
AuthorPosts
-
May 5, 2014 at 3:29 pm #150914
integrity
ParticipantI 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’m having a similar problem where the title switches to undefined whenever I submit the events bar (not the filter bar plugin).
After some testing of various combinations of disabling themes and plugins I’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).
So my testing process went as follows:
I 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.If I enable GF then I get the undefined title.
If I enable GF and include the tribe_events_the_header_attributes function (deleted my template override) then the page title will switch from “Page Name | Site Name” to “Page Name » Site Name” when the events bar submits. The latter value is added to the data-title attribute that is printed by tribe_events_the_header_attributes.
I’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?
May 6, 2014 at 2:42 pm #152034Casey D
MemberHello integrity,
Thanks for contacting us!
Typically, override help goes beyond the scope of the forums, but I think I know what the issue is.
If you check out the source to tribe_events_the_header_attributes(), you can see the data-title attribute is built there from the wp_title. So I believe not having it there removes it from the list when the tribe_events_header_attributes filter runs to create the title. I’ll double check with a dev to make sure this is right.
Cheers!
– Casey Driscoll
May 16, 2014 at 2:53 am #163280Adam
ParticipantHey Integrity,
Just wanted to say thanks for figuring out the strange, nonsensical requirement of keeping tribe_events_the_header_attributes() in order to keep your title from saying ‘undefined’.I dislike and don’t understand the need for it, but it solved one of the two major issues I’m having with the plugin at the moment.
Thanks again.
May 30, 2014 at 7:55 am #190745Casey D
MemberHello integrity,
We typically close threads if there is no activity after two weeks. Feel free to create a new thread and reference this one to save you time.
Cheers!
– Casey Driscoll
-
AuthorPosts
- The topic ‘Page title changes to undefined when event bar on event list page submits’ is closed to new replies.
