• Resolved freischwimmen

    (@freischwimmen)


    After upgrading to 3.8 the code which used to work to alter page titles on single event pages seems to be not working anymore. Suddenly “Upcoming Events” is prepended to the page title. For example “My Event 01” becomes “Upcoming Events My Event 01”, which really doesnt make any sense. Is this a bug or intended?

    So far i used this snippet in my header to alter page titles, not working on single event pages anymore after upgrading to 3.8.

    elseif(tribe_is_event() && !tribe_is_day() && is_single()) {
    wp_title(''); echo ' | '; bloginfo( 'name' ); }
    elseif(tribe_is_event() && !tribe_is_day() && !is_single()) {
    echo 'Events | '; bloginfo( 'name' );

    https://www.ads-software.com/plugins/the-events-calendar/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor leahkoerper

    (@leahkoerper)

    Hi freischwimmen,

    As outlined in our forum guidelines, we aren’t able to help with these kinds of customizations. But we do have some handy resources that might be helpful for you:

    ? Themer’s Guide – provides an overview of how to customize the plugin’s frontend appearance.
    ? Tutorials – useful tips and tricks for changing how the plugin looks and behaves.
    ? Technical Docs – provides an overview of the classes and functions in each plugin

    You might also review the release notes for 3.8 to see if a change there might have effected your code. It’s also probably worth it to check for a plugin or theme conflict.

    Good luck, and thanks for using The Events Calendar!

    ~Leah

    Thread Starter freischwimmen

    (@freischwimmen)

    Thanks Leah, but when reverting to twentyfourteen without any other plugin activated a single event page also has “Upcoming Events | My Posttitle” as page title, so no plugin conflict. I’m very aware that you cannot help with customisations, but as the code worked fine just before updating your plugin i thought you could let users know what core plugin changes might be responsible for the abovementioned behaviour of adding “Upcoming Events” to every single page event title .

    Brook

    (@brook-tribe)

    How freischwimmen,

    That is true, the behavior changed a bit. Here is what I am doing now to adjust titles, basically just using a different filter: https://pastebin.com/QU2aMwBJ

    That should do what you need. Thanks for posting!

    – Brook

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Single Event Page Titles change after 3.8 Upgrade’ is closed to new replies.