Forum Replies Created
-
AuthorPosts
-
January 19, 2013 at 5:50 pm in reply to: Can't Upgrade PRO to 2.0.11 after Upgrading Event Calendar to 2.0.11 #31194
Grec
MemberNever mind … I tried again and it worked this time. Not sure what hung it up before.
Grec
MemberI don’t know what Samantha’s looked like before but what she has now is the same look I have for single events.
http://www.montclairmetaphysical.com/event/animal-healing-class/
In my case I have two narrow columns on either side so my central area isn’t as wide as hers. Hence not using the right 1/3 really jams things up and makes the meta area longer.
Grec
MemberJust an FYI… The above change to my theme’s style.css file didn’t work. Any ideas?
Grec
MemberThanks Barry! Worked like a charm.
Grec
MemberBerry: Thanks. I’m assuming the CSS element I need to change is the columns class. Testing this by adding the following to my theme’s style.css file.
#tribe-events-event-meta .column {
float:left;
width:45%;
padding:0 4% 0 0;
text-align:left;
margin:0;
}Still waiting for changes to take effect due to caching issues.
Also instead of adding it to the theme’s style.css file it would be nice if there was a separate css file (say one I could put in the event’s folder we need to create to override templates and functions). That way if we update our theme, the changes still remain intact. Has anyone done this? What are the recommended ways to do this?
Grec
MemberFigure my previous question out in this great. Just make a copy of /wp-content/plugins/events-calendar-pro/views/events-advanced-list-load-widget-display.php and place it into an ‘events’ folder in your active theme.
Still need to get the month format issue correct though.
Grec
MemberAlso any thoughts on creating an override file for this so I don’t have to redo the changes after each upgrade?
Grec
MemberAndy: Do you happen to know a way I can use use my theme’s properties so I don’t have to update the EVP code after each upgrade for the following items.
I’ve seen some mentions of an override files but I need to get caught up on that.
Grec
MemberLooks like it’s doing what I wanted… Thanks Andy! For everyone else wanting to do the same thing, the following is the code I used. It’s a slight modification of Andy’s function and follow-up suggestions. Specifically, I needed to include “DESCRIPTION” right before the get_permalink function.
function tribe_ical_modify_event( $item, $eventPost ) {
$searchValue = “DESCRIPTION”;
$fl_array = preg_grep(‘/^’ . “$searchValue” . ‘.*/’, $item);
$key = array_values($fl_array);
$keynum = key($fl_array);
$mod = “DESCRIPTION:Please visit for more information: ” .get_permalink( $eventPost->ID );
unset($item[$keynum]);
$item[] = $mod;
return $item;
}Grec
MemberSo does you original function just limit the DESCRIPTION to 1000 characters? Just checking… Been a while since I coded.
Grec
MemberSorry internal website… In the Events List Advanced Widget the date simply reads as “Dec 15, 2012” instead of with the month spelled out (e.g., December 15, 2012). As noted above I followed the directions at https://theeventscalendar.com/support/forums/topic/widget-separate-date-and-time/, where you suggested swapping:
echo tribe_get_start_date( $post->ID, $start );
with
echo tribe_get_start_date( $post->ID, false, ‘M’ );
echo tribe_get_start_date( $post->ID, false, ‘d’ );
echo tribe_get_start_date( $post->ID, false, ‘Y’ );
echo tribe_get_start_date( $post->ID, false, ‘g:ia’ );Since I didn’t want the “time” I just left out the last line. Of course the “M” format you suggested in the first line above displays the shortened month instead of the spelled out version (e.g., Dec instead of December). I am looking to have the spelled out version.
Thanks for you assistance…
Grec
MemberThanks for the reference… Sorry for being a n00b … but here do I add this? Also I’d like to include a description but I’d like it to just be a link to the event in the calendar instead. Any suggestions there?
Grec
MemberThanks for responding… Looks like it just started working. I guess the old style sheet was stuck in my cache or something. Again, thanks for your response!
-
AuthorPosts
