Forum Replies Created
-
AuthorPosts
-
July 15, 2013 at 11:34 pm in reply to: Again in 3.0: First Event title shows instead of wanted Page Title #55357
Stephanie
ParticipantThis reply is private.
Stephanie
ParticipantBarry, you are a star!
It works like a charme!
thank you so much!Steph
Stephanie
ParticipantThis reply is private.
Stephanie
ParticipantHi Barry,
sure:
http://pastebin.com/Ka6g6u2K
This is in the includes/page-title.php i think this is where the subtitle is settled
thanks StephStephanie
ParticipantHi 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
Stephanie
ParticipantHi 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 -
AuthorPosts
