Home › Forums › Calendar Products › Events Calendar PRO › Modify table-mini.php (widget cal) to link directly to date
- This topic has 7 replies, 4 voices, and was last updated 10 years, 9 months ago by
Support Droid.
-
AuthorPosts
-
March 26, 2012 at 9:43 am #17151
Tom
MemberI am trying to modify even-calendar so that the table-mini.php does not display the little pop up but instead enabled you to click directly through to an event on days where there is an event.
This is done in table.php via
if( function_exists(‘tribe_get_linked_day’) ) {
$return .= tribe_get_linked_day($date, $day); // premium
} else {
$return .= $day;
}Which is fine but then I lack the ability to add custom css to active days (i.e. days with events go red) so that people know what is active/inactive.
I have pasted the function I have modified into pastebin. Any help would be seriously appreciated!
March 26, 2012 at 6:04 pm #17188Rob
MemberHey Tom. Thanks for the note here. This is an interesting idea. That plugin was designed to be pretty bare bones so I’m not sure how much we can offer up on the suggestion route, but let me see if our dev Jonah can point you in the right direction.
March 27, 2012 at 1:48 am #17194Tom
MemberYes, any help would be much appreciated.
I am sure there must be a simple way to get href=”” . tribe_get_day_link($date) . “‘ to work in that context? I am probably just being daft
March 27, 2012 at 8:21 am #17203Rob
MemberGot it. I’ve sent this Jonah’s way and he should be commenting when he hits the forums next. Thanks for being patient, Tom.
March 29, 2012 at 11:37 am #17347Jonah
ParticipantHi Tom, I don’t quite get it. So you want to remove the popup altogether and have the day link to an event on that day? What about days where you have multiple events? Where would the day link to then?
April 2, 2012 at 11:59 am #17487Tom
Member@Jonah.
Yes exactly. The calendar won’t have event everyday so i imagined the users flow to be:
Click day -> Display all events on that day (which the get_day_link does) -> Click event -> Display Event.April 3, 2012 at 10:40 am #17540Jonah
ParticipantHi Tom, I think I finally figure this out. It’s a multi step solution so here goes:
1. Modify your table-mini.php file (place a copy in an ‘events’ folder in your theme first) replacing line 89 with: https://gist.github.com/2293961
2. Next deregister the default calendar js by using: https://gist.github.com/2026611
3. The deregister script also contains code to register your own js file, so make a copy of /wp-content/plugins/the-events-calendar/resources/events.js and place in the ‘events’ folder you created in your theme. Then simply comment out lines 29-46 which is the js for the “little popups” which will disable the tooltip popups.
Let me know how it goes!
July 6, 2015 at 5:00 pm #976439Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Modify table-mini.php (widget cal) to link directly to date’ is closed to new replies.
