Forum Replies Created
-
AuthorPosts
-
November 16, 2012 at 2:38 pm in reply to: Community Events submission form replicates itself in secondary sidebar #28194
Jonah
ParticipantHi Victoria,
What does the Featured Widget Amplified display? Would you be able to provide us a copy of the theme for evaluation/testing purposes? I have the Genesis framework but not this particular theme… You can email to pro [at] tri [dot] be and reference this thread and attn. to me please.
Thanks,
JonahJonah
ParticipantNovember 16, 2012 at 12:57 pm in reply to: Upgrade: Calendar Over Sidebar, Image from Event on Calendar #28188Jonah
ParticipantSorry that first snippet to add the body classes got a little mangled. Try this instead: https://gist.github.com/2127103
November 16, 2012 at 12:55 pm in reply to: Upgrade: Calendar Over Sidebar, Image from Event on Calendar #28187Jonah
ParticipantHi Beth,
There are a couple of things that I can offer that may be of help in Thesis. One, try using this code in a custom_functions.php file in a ‘custom’ directory inside your Thesis theme folder (you might already have one of these). Code:
// Add a class for styling
function add_classes($classes) {
if('tribe_events' == get_post_type()) {
if ( is_single() && !tribe_is_showing_all() ) { // single event
$classes[] = 'single-event';
} elseif ( tribe_is_upcoming() || tribe_is_past() || tribe_is_day() || (is_single() && tribe_is_showing_all()) ) { // list view
$classes[] = 'list';
} else { // grid view
$classes[] = 'grid';
}
} else {}
return $classes;
}
add_filter('thesis_body_classes', 'add_classes');
This will then allow you to target anything on any of those pages, i.e. the featured image that’s showing up on the calendar page. So with the above code in place you would be able to hide the featured image div like so:
.grid #featured_main_pg_image {
display: none;
}
For the sidebars, there’s this code that you would add to you custom_functions.php file that may help you:
// Conditionally remove original sidebars
function no_sidebars() {
global $wp_query;
if('tribe_events' == get_post_type()) {
$my_post_count = $wp_query->found_posts;
echo $my_post_count;
if ( $wp_query->query_vars['post_type'] == TribeEvents::POSTTYPE && is_single() && !is_tax(TribeEvents::TAXONOMY) ) { // single event
return true;
} elseif($wp_query->query_vars['eventDisplay'] == 'past' && $wp_query->query_vars['post_type'] == TribeEvents::POSTTYPE && is_paged() && $my_post_count > 0) {
return false;
} elseif ( $wp_query->query_vars['eventDisplay'] == 'upcoming' || $wp_query->query_vars['eventDisplay'] == 'past' && $wp_query->query_vars['post_type'] == TribeEvents::POSTTYPE && !is_tax(TribeEvents::TAXONOMY) ) { // list view
return true;
} elseif ( $wp_query->query_vars['post_type'] == TribeEvents::POSTTYPE && $wp_query->query_vars['eventDisplay'] == 'month' && !is_tax(TribeEvents::TAXONOMY) ) { // grid view
return false;
} elseif ( $wp_query->query_vars['post_type'] == TribeEvents::POSTTYPE && $wp_query->query_vars['eventDisplay'] == 'month' && is_tax(TribeEvents::TAXONOMY) ) { // grid view categories
return false;
} elseif ( $wp_query->query_vars['post_type'] == TribeEvents::POSTTYPE && tribe_is_day() ) { // single event days
return false;
}
} elseif( $wp_query->query_vars['post_type'] == TribeEvents::VENUE_POST_TYPE ) { // venues
return false;
} else {
return true;
}
}
add_filter('thesis_show_sidebars', 'no_sidebars');
I hope this all helps but let me know if you need anything else. Oh, and if you’re happy with the plugin and support we sure would appreciate a review here: http://wordpress.org/support/view/plugin-reviews/the-events-calendarMany thanks,
– JonahNovember 16, 2012 at 12:10 pm in reply to: Setting the RSS feed in such a way that it just shows the feeds of last 24 hours #28186Jonah
ParticipantHey aman704,
Sorry about the delay on this. I’ll have an answer for you today.
– Jonah
Jonah
ParticipantAwesome to hear! Let us know if you need anything else.
– Jonah
November 16, 2012 at 9:31 am in reply to: Upgrade: Calendar Over Sidebar, Image from Event on Calendar #28177Jonah
ParticipantHi Beth,
I’m not quite sure how the update would have changed things but there’s not a lot of space for the calendar overall anyway… One possible way you can solve the width/overlapping issue is to add this but of CSS to your theme’s style.css:
.tribe-events-calendar td .tribe-events-event {
width: 67px;
}
For the other issue with the image from a Facebook event, it looks like for some reason your theme is pulling in the featured image from the first event in the calendar. What theme are you using? Thesis?– Jonah
Jonah
ParticipantHi Dave,
What is the page or organization you are trying to import from? Also, auto import is only going to import future events and not past events (those you will need to manually import) so make sure you have some upcoming events.
– Jonah
Jonah
ParticipantHi Sandro,
Here’s a code snippet that should work for you: https://gist.github.com/4088946
If you want to do pagination I highly recommend this jQuery plugin: http://luis-almeida.github.com/jPages/ – it makes pagination for any type of element super easy! Let me know if you need anything else.
– Jonah
November 15, 2012 at 6:55 pm in reply to: Schedule and Blog Highlighted at the same time on Menu #28160Jonah
ParticipantHi Dave,
There are no ID’s but you can use these conditional statements to make your own if you want: https://gist.github.com/2415009
You could just create a variable in PHP ($page_id) and then in any given statement, set the ID or text string you want. ID might not be a good idea because it could conflict with other auto generated ID’s.
– Jonah
Jonah
ParticipantHi Kevin,
So I took a look at things and when I reverted to the Twenty Eleven theme and added the Calendar widget to one of the page sidebars it worked fine. So this indicates it’s something in your theme, likely something with jQuery or other javascript. You’ll need to go through things, removing code until it works. Good luck!
– Jonah
Jonah
ParticipantHi Matt,
No it will not delete all your events, they are in the database, not in the files. To manually update, simply download a copy of the plugin and copy/paste/upload the contents of the zip and replace everything in the wp-content/plugins/events-calendar-pro folder on your server with that.
– Jonah
November 15, 2012 at 8:15 am in reply to: Schedule and Blog Highlighted at the same time on Menu #28132Jonah
ParticipantHi Dave,
What do you mean the “pages tab”? You can create custom links in Appearance > Menus and add links for whatever you want to menus if that’s what you’re asking. No, Calendar and Upcoming Events are not child pages or parent pages. They are rather virtual dynamic pages created by the plugin.
Does that answer your question?
– Jonah
November 15, 2012 at 7:26 am in reply to: Added venue/organizer not displaying in member drop down on event form #28130Jonah
ParticipantSounds good Sheila, let me know how that goes.
– Jonah
Jonah
ParticipantHi Josh,
The above references both using the Default Events Template or Default Page Template which would the latter would also include any other theme page templates. So, if you’re using the Full Width template in your theme, follow the instructions for finding where the_title() is called in your theme and modify the code accordingly.
I hope that helps.
– Jonah
-
AuthorPosts
