Forum Replies Created
-
AuthorPosts
-
Jonah
ParticipantHi all, it’s really going to depend on your theme and it’s hard to say exactly how to do this because the instructions are complex and vary. But generally you are either using the Default Events Template (ecp-page-template.php and ecp-single-template.php) or the Default Page Template (page.php). What you should be able to do is use conditional code in either of the templates depending on how you have this set in Settings > The Events Calendar:
if ( tribe_is_month() ) { //no sidebar on grid view} else if ( tribe_is_event() && !tribe_is_day() && !is_single() ) { //set sidebar on list view
get_sidebar();
} else if ( is_singular() && tribe_is_event() ) { //set sidebar on single view
get_sidebar();
} else {}
I hope that helps!
Jonah
ParticipantHi Vincent, you’re going to need to figure out some way in Gantry to filter or hook into the sidebar and conditionally check to see if your are on one of the event pages with code 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 {
}
In 2.1 we’re changing the templating system so that the events pages will be more available for things like custom sidebar setups and page title customizing but for now you’ll have to hack it somehow.
I hope that helps!
February 1, 2012 at 10:40 am in reply to: When using ajax navigation, tooltips of last two days get cut #14536Jonah
ParticipantDiego, you can try removing the overflow: hidden property in one of the divs that contains the calendar. I don’t know which one it would be without looking at your site but maybe you can figure it out.
February 1, 2012 at 10:34 am in reply to: When using ajax navigation, tooltips of last two days get cut #14535Jonah
ParticipantHi Diego,
We’ve got a ticket filed for this and I know of no quick fix for this. I’ll check in with Rob again to see if he knows.
Jonah
ParticipantHi Diego, since it’s PHP code make sure it’s wrapped in PHP tags like so: http://pastebin.com/GZLs1J02
Jonah
ParticipantHi all, it’s going to vary depending on your theme and you’ll either want to filter the post/page title function if your theme uses one like so (this is for Genesis) – paste into functions.php:
/*-------------------------------------------------------------------------------
Modify Titles
-------------------------------------------------------------------------------*/
add_filter('genesis_post_title_text', 'custom_do_post_title');
function custom_do_post_title() {$title = get_the_title();
if ( strlen( $title ) == 0 )
return;if(tribe_is_month() && is_tax()) { //Calendar Category Page
$title = 'Events Calendar' . ' » ' . single_term_title('', false);
} elseif(tribe_is_month()) { //Calendar Page
$title = 'Events Calendar';
} elseif(tribe_is_event() && !tribe_is_day() && !is_single() && !is_search()) { //Events List Page
$title = 'Events List';
} else { //Everything Else
$title = get_the_title();
}return $title;
}
Or go into page.php and find where the_title() is called and use something like this instead: http://pastebin.com/tLMqNi5b
Jonah
ParticipantHi Luke, the link is always going to exist if there are adjacent events (an earlier and later dated event) to the current event. When you get to the latest event post you will not see a next event link and vise versa for the earliest event.
The tribe_previous_event_link automatically echo’s the value if it exists. I searched for this function in the code and found that within it contains a call to get_event_link which you should be able to use as a conditional check.
Try something like this:
global $post;
$tribe_ecp = TribeEvents::instance();
$next = $tribe_ecp->get_event_link($post,'next',$anchor);
$prev = $tribe_ecp->get_event_link($post,'previous',$anchor);
if($next != '') {
echo 'its not empty!';
} else {
echo 'its empty!';
}
Jonah
ParticipantAwesome, glad to hear!
Jonah
ParticipantHi Frank, can you send me both exports, the first one from Migrate DB and the WordPress export? My email is jonahcoyote [at] gmail [dot] com
I’ll take a look as soon as I can.
January 31, 2012 at 5:18 pm in reply to: Displaying Events in Search or Category or Taxonomy results pages #14488Jonah
ParticipantHi Andy,
Events should be showing in search results unless you’ve excluded them some way or have a plugin doing this. Are you modifying the search in any way? What theme are you using?
As for the category or taxonomy results pages, event categories are not setup as standard categories, they are taxonomies so should be showing in your taxonomy result pages for that specific taxonomy…
You could try adding some additional query parameters to get only upcoming events in your search page by editing your search.php template with:
query_posts(array( 'eventDisplay'=>'upcoming' ));
Put that before the if(have_posts() bit…
Jonah
ParticipantTry this:
add_filter('nav_menu_css_class' , 'special_nav_class' , 10 , 2);
function special_nav_class($classes, $item) {
if($item->title == "Events") {
$classes[] = "special-class";
}
return $classes;
}
Then you can target .special-class to style that menu item.
Jonah
ParticipantHi Cynthia, do you have a site I can look at with an example?
January 31, 2012 at 3:26 pm in reply to: Headache: different sidebar for Event List and Single Event pages #14482Jonah
ParticipantHi Nick,
You can use the following conditional code to check what page you are on and display each sidebar:
if(tribe_is_month()) { // Calendar Grid} else if(tribe_is_event() && !tribe_is_day() && !is_single()) { // Event List
} else if(tribe_is_event() && !tribe_is_day() && is_single()) { // Single Events
} else {
}
Hope that helps!
Jonah
ParticipantHi Luke, I don’t quite understand your request. Can you provide more details and possibly an example?
Thanks,
JonahJonah
ParticipantUnfortunately not without comparing the files but the hotfix came out around Jan. 20th so you must have this version. On the second you link you posted above I am seeing that issue and I wonder if there is something particular with this event that is breaking the iCal link? Can you think of anything? Or possibly a conflict with another plugin? Would you mind providing me WP admin access so I can take a look? You can email to jonahcoyote [at] gmail [dot] com
For the third link, the iCal link works for me, is it still broken for you?
-
AuthorPosts
