Page title changes to undefined when event bar on event list page submits

Home Forums Calendar Products Events Calendar PRO Page title changes to undefined when event bar on event list page submits

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #150914
    integrity
    Participant

    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’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?

    #152034
    Casey D
    Member

    Hello 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

    #163280
    Adam
    Participant

    Hey 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.

    #190745
    Casey D
    Member

    Hello 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

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Page title changes to undefined when event bar on event list page submits’ is closed to new replies.