First Event title shows instead of wanted Page Title

Home Forums Calendar Products Events Calendar PRO First Event title shows instead of wanted Page Title

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #50562
    Stephanie
    Participant

    Hi at Tribe,
    i have been fiddling around for days now but even with trying all the suggested solutions everywhere I just can not get anywhere near a solution. I only use the list view for the calendar.

    On my events page the title of the page always shows the most current event as page title.
    http://snippi.com/s/9aeytx3

    But I guess the solution lies somewhere here:
    http://snippi.com/s/gh6b8s3
    I probably need another “if event list show page title” business?

    Or maybe here?:

    Then there is an extra page-title-php with the following lines:
    http://snippi.com/s/keyu5vt

    Would be great if you could help

    Thanks Steph

    #50629
    Barry
    Member

    It’s difficult to say from those snippets alone and it could indeed result from activity happening upstream of those (ie, within a filter call).

    When you opened the thread you noted that you had tried deactivating other plugins and switching to a default theme. Did you experience the same thing at that point or, if not, were you able to isolate this to a specific component (such as your theme)?

    Thanks!

    #50669
    Stephanie
    Participant

    Hi Barry,
    yes I know it relates to the way the page title is build in this theme. I had this problem with another theme as well where there is the pagetitle settled in a wide coloured banner as well.
    The standard theme works just fine.
    It would be great if you could have a look. Am happy to provide you with all needed data.
    thanks Stephanie

    #50678
    Barry
    Member

    Sure, well if you could either email a .zip of the theme to us, or provide a download link, we can take a quick look (though I can’t make any promises about fixing it, I might be able to offer a suggestion).

    #50679
    Barry
    Member

    This reply is private.

    #51037
    Barry
    Member

    Thanks!

    So here are a few changes you can make that should at least get you to a better starting position. Before you proceed though, please read and familiarize yourself with:

    Our themer’s guide
    This tutorial on template overrides

    Armed with everything you have gleaned from the above resources, please then try the following steps:

    1. Visit Events > Settings > Template and change the Events Template setting to Default Events Template.

    2. Copy and override ecp-page-template.php per the instructions in our themer’s guide and the template overrides tutorial.

    3. Change your copy of ecp-page-template.php so it looks like this.

    4. Also edit your theme’s stylesheet and add these rules to the bottom.

    Does that help?

    #51127
    Stephanie
    Participant

    Hi Barry,
    hooray, that worked great! Needed to add a filter in the functions on top though:
    add_filter(‘tribe_get_events_title’, ‘my_get_events_title’);
    function my_get_events_title($title) {
    if( tribe_is_month() && !is_tax() ) { // The Main Calendar Page
    return ‘Seminare, Vorträge & Workshops’;
    } elseif( tribe_is_month() && is_tax() ) { // Calendar Category Pages
    return ‘Seminare, Vorträge & Workshops’ . ‘ » ‘ . single_term_title(”, false);
    } elseif( tribe_is_event() && !tribe_is_day() && !is_single() ) { // The Main Events List
    return ‘Veranstaltung’;
    } elseif( tribe_is_event() && is_single() ) { // Single Events
    return get_the_title();
    } elseif( tribe_is_day() ) { // Single Event Days
    return ‘Veranstaltung am’ . date(‘F j, Y’, strtotime($wp_query->query_vars[‘eventDate’]));
    } elseif( tribe_is_venue() ) { // Single Venues
    return $title;
    } else {
    return $title;
    }
    }

    Only tiny Problem is the subtitle on the page which i tried to implement with the line:

    as in the original includes page-title.php file. No results.

    Could you have another look?

    Thanks a lot

    Steph

    #51135
    Barry
    Member

    The forum doesn’t deal with code too well so I think I’m missing some of what you posted (re the problem with the subtitle) … can you share your code via a service like Pastebin or Gist?

    Thanks!

    #51138
    Stephanie
    Participant

    Hi Barry,
    sure:
    http://pastebin.com/Ka6g6u2K
    This is in the includes/page-title.php i think this is where the subtitle is settled
    thanks Steph

    #51142
    Barry
    Member

    OK, thanks – I’m not quite clear about the actual problem, though. Can you describe what you want to happen and what actually is happening (if you could share an example from your own site that would be awesome 🙂 )?

    #51306
    Barry
    Member

    Can you confirm what the problem is as you see it (with the subtitles) and what the desirable behaviour is?

    I’m also unfamiliar with German which makes it difficult for me to navigate to the events pages … if you could point me in the direction of the relevant URL that would be great (you can use our private reply feature to post it if you prefer).

    Thanks!

    #51315
    Stephanie
    Participant

    This reply is private.

    #51327
    Barry
    Member

    OK – thanks for your patience.

    So if I understand correctly you want event pages to also have a search box and potentially to have a subtitle, too.

    Following from my earlier post, can you change your custom ecp-page-template.php to this?

    #51335
    Stephanie
    Participant

    Barry, you are a star!
    It works like a charme!
    thank you so much!

    Steph

    #51339
    Barry
    Member

    My pleasure – and sorry for the delay while we worked toward the solution 🙂

Viewing 15 posts - 1 through 15 (of 15 total)
  • The topic ‘First Event title shows instead of wanted Page Title’ is closed to new replies.