Forum Replies Created
-
AuthorPosts
-
Jonah
ParticipantGlad you figured it out!
February 3, 2012 at 12:35 pm in reply to: Page title doesn't display on Events list or calendar view #14674Jonah
Participant@Schmidtysays: you’ll need to filter or hook into the php function that your theme or Platinum SEO is using to get the page titles and modify the page titles conditionally for the calendar and list view pages. For example, in the Genesis theme framework you can use the following code to modify the page title hook output by Genesis and conditionally set the page titles on the grid and list view:
add_action('genesis_post_title','custom_do_post_title');
function custom_do_post_title() {$title = get_the_title();
if ( strlen( $title ) == 0 )
return;if ( tribe_is_month() ) { //set title on grid view
$title = 'Events Calendar';
} else if ( tribe_is_event() && !tribe_is_day() && !is_single() ) { //set title on list view
$title = 'Events List';
} else if ( is_singular() ) {
$title = sprintf( '%s', apply_filters( 'genesis_post_title_text', $title ) );
} else {
$title = sprintf( '%s', get_permalink(), the_title_attribute('echo=0'), apply_filters( 'genesis_post_title_text', $title ) );
}echo apply_filters('genesis_post_title_output', $title) . "\n";
}
By the way, In 2.1, we’re ditching the old display system and instead going back to using actual pages for grid and list view so things like this will become much easier.
I hope this helps,
JonahFebruary 3, 2012 at 12:30 pm in reply to: Add custom field to meta list on right in list view #14673Jonah
ParticipantHi Lynne, you would want to override /wp-content/plugins/the-events-calendar/views/list.php – put a duplicate copy of that in an ‘events’ folder in your theme and customize away!
Jonah
ParticipantHey Dale-Anthony, using tribe_calendar_mini_grid() works for me in a page template. You can’t have two instances of it on the same page though, so if you have the calendar widget displayed on the same page there will be a conflict and one of them won’t display anything. Not sure why it’s not working for you otherwise. Is there any code in the source (i.e. its there but for some reason not actually diaplaying)?
Jonah
ParticipantNope, that’s solution that works for now Angelo. Nothing dodgy about it.
Jonah
ParticipantUghhh, ok html ‘code’ tags with html style arrows on either side of the tag.
Jonah
ParticipantThat was meant to read ‘
' tags, without the spaces of course...Jonah
ParticipantGlad you worked it out David, if you need to post code in the comments, try either wrapping your code in
tags or just use http://pastebin.com/Thanks,
JonahJonah
ParticipantHey Josh,
No problem, hope we can get this figured out. If you’re using the Default Page Template for the events setting, you should be able to go into your page.php template and modify where the_title() appears there. If it’s not in page.php, take a look in header.php because that’s probably where it is. You’ll want to use conditional code to affect what title is displayed on the events pages. Something like this:
if ( tribe_is_month() ) { //set title on grid view} else if ( tribe_is_event() && !tribe_is_day() && !is_single() ) { //set title on list view
} else if ( is_singular() ) {
} else {
}
I hope that helps!
Jonah
ParticipantHi John,
I can’t seem to duplicate this using the same event information. Can you try disabling all other plugins to see if it’s a plugin conflict? That and maybe try switching to the Twenty Eleven theme? Also, maybe try updating Genesis to 1.8?
Please try these things and if none of this works I’ll need to have someone else take a look.
Thanks,
JonahFebruary 2, 2012 at 5:21 pm in reply to: Change date format to remove year and put date on one line and time on 2nd line #14608Jonah
ParticipantGreat, let us know if you need anything else with this 🙂
Jonah
ParticipantHi Josh, so you have the “Default Events Template” selected?
February 2, 2012 at 5:16 pm in reply to: When using ajax navigation, tooltips of last two days get cut #14606Jonah
ParticipantAhhh that’s too bad. Keep an eye out for an update fixing this!
Jonah
ParticipantHi Diego,
Wrapped in gridview.php doesn’t make sense. Have you copied the code above http://pastebin.com/GZLs1J02 ? Do you have an example I can look at?
Jonah
ParticipantHey hc2ca, you’re welcome and your assumption is correct!
-
AuthorPosts
