Forum Replies Created
-
AuthorPosts
-
May 1, 2014 at 8:08 am in reply to: data-day=”1″ Error when no future events are scheduled for the current month #147458pdeliteParticipant
Yes, it looks like our posts crossed. You viewed the site AFTER we installed the update. Prior to that, the calendar had the errors discussed above.
May 1, 2014 at 8:08 am in reply to: data-day=”1″ Error when no future events are scheduled for the current month #147454pdeliteParticipantHi Barry, we’ve finally resolved the issue. Just thought I would post the problem here in case others have the same issue.
It looks like this was due to a licensing issue where the license was registered under a temporary IP where we were building the site. An update was available for the events calendar and we weren’t able to see the update under plugins. So I detached the license on the tri.be site, and added the license back in on the site to attach to the correct domain.
Then I updated to the latest version of the calendar and the issue with recurring events not displaying consistently, events being deleted after they expired and the calendar showing errors on past months has resolved.
So this was either due to some bugs in the last version of the plugin that were resolved with this latest update or it was some kind of issue related to the license not being attributed to the correct domain name.
May 1, 2014 at 6:33 am in reply to: data-day=”1″ Error when no future events are scheduled for the current month #147347pdeliteParticipantHi Barry, the issue is still happening, but in order to see the problem, you need to switch over to April and refresh your browser. If you don’t do that, the calendar doesn’t display the events as past events so it displays fine. This is the Inspired theme and we don’t have template overrides in place. Not sure where to go from here.
April 30, 2014 at 9:07 am in reply to: data-day=”1″ Error when no future events are scheduled for the current month #146563pdeliteParticipantHow can we resolve this issue?
April 30, 2014 at 7:52 am in reply to: data-day=”1″ Error when no future events are scheduled for the current month #146487pdeliteParticipantI deactivated all the plugins and the issue still remained. When I switched to the Twenty Thirteen theme, I no longer saw the issue.
pdeliteParticipantThat doesn’t seem to have made a difference. Any other suggestions?
pdeliteParticipantYes, I added the code into the functions.php file like so:
<?php
//Theme Setup
require_once (TEMPLATEPATH . ‘/framework/setup.php’);
$theme = new ThemeSetup();
$theme->init();
//Admin Setup
require_once (OPTIONS_ADMIN . ‘/setup.php’);
$theme_admin = new AdminSetup();
$theme_admin->init();
// Strip unwanted <br /> tags from forms
add_filter(‘the_content’, ‘remove_bad_br_tags’);
function remove_bad_br_tags($content) {
$content = str_ireplace(“<br />\n<input”, “<input”, $content);
return $content;
}add_filter(‘body_class’, ‘event_category_body_classes’);
function event_category_body_classes($classes) {
if ( tribe_is_event() && is_single() ) {//Query event categories
$event_categories = wp_get_post_terms( get_the_ID(), ‘tribe_events_cat’ );
if( !empty( $event_categories ) ) {
foreach( $event_categories as $single_category ) {
$classes[] = ‘tribe-events-cat-‘ . $single_category->slug;
}
}
}
return $classes;
}?>
pdeliteParticipantSure, here it is: http://goo.gl/ntusMq
pdeliteParticipantCould you confirm this would be the right code to add to the theme’s functions.php file to add a body class for the family-events category?
add_filter(‘body_class’, ‘event_category_body_classes’);
function event_category_body_classes($classes) {
if ( tribe_is_event() && is_single() ) {//Query event categories
$event_categories = wp_get_post_terms( get_the_ID(), ‘tribe_events_cat’ );
if( !empty( $event_categories ) ) {
foreach( $event_categories as $single_category ) {
$classes[] = ‘tribe-events-cat-family-events’ . $single_category->slug;
}
}
}
return $classes;
}pdeliteParticipantOkay, thanks. I did add the code to the functions.php file. I’ll try to figure it out.
pdeliteParticipantHmm, I think I’m missing something here…
Here is my code, where family-events is the category, but it’s not changing the styling…body.tribe-events-cat-family-events h2.tribe-events-single-event-title {
font-family: “Comic Sans MS”, Cursive !important;
}pdeliteParticipantTHANK YOU Casey! You are the best!
pdeliteParticipantThanks so much Casey! Can you give me an example of what a styled body tag would look like? Are you saying I need to add the CSS itself into one of the PHP files or just in the CSS?
pdeliteParticipantThat’s great to know we can change the style in list view. I would also like to change the style in the calendar view as well and on the individual event page itself. Is that possible?
April 17, 2014 at 2:10 pm in reply to: Is it possible to add different HTML above and below each month in gridview? #135552pdeliteParticipantHi Barry, that definitely helps, thank you so much!!!
-
AuthorPosts