Home › Forums › Calendar Products › Events Calendar PRO › Linking to events at the day, I have chosen in Mini Calendar
- This topic has 9 replies, 3 voices, and was last updated 10 years, 5 months ago by
Support Droid.
-
AuthorPosts
-
October 6, 2015 at 6:10 am #1011827
Hans-Gerd
ParticipantHey,
when clicking at a special day in Mini Calendar, I want to link to “more events” on that selected day.I’ve edited mini-calendar-widget.php in childtheme\tribe-events\pro\widgets on my local server and try to use tribe_events_the_mini_calendar_day_link() function for example in following manner at the end of the file:
<?php echo tribe_events_the_mini_calendar_day_link(); ?>I would appreciate any help
Cheers
October 6, 2015 at 9:16 am #1011954George
ParticipantHey @Hans-Gerd,
Can you specify what, exactly, is failing when you do this? And also can you paste in the un-edited copy of your customized version of the “mini-calendar-widget.php” file you mentioned into a Gist at http://gist.github.com, then share a link to that file in your reply?
I should note that we offer no support whatsoever for custom code here, technically, and so I can’t guarantee a solution…
…but I’m happy to take a look! 🙂
Post your customized file into a Gist at http://gist.github.com, then share a link to that Gist here – I’ll take a look and see if I can spot anything quick that might be causing this to fail.
Thank you,
GeorgeOctober 6, 2015 at 9:12 pm #1012120Hans-Gerd
ParticipantHey @George,
thank you for quick reply.
There will be a link below the calendar of the selected day after the display of up to 3 events, so you just see when clicking on the link an overview of all events on this selected day.Here the link to the customized file:
https://gist.github.com/anonymous/9fd61ae432c1c0580b90I have only added <?php echo tribe_events_the_mini_calendar_day_link(); ?> in the last row.
I have moved the line also inside the <div>, but it doesn’t worked also.cheers
Hans-Gerd
October 6, 2015 at 9:41 pm #1012125Hans-Gerd
ParticipantHey @George,
I have just tried to paste the code snippet from list-widget.php:<p class=”tribe-events-widget-link”>
” rel=”bookmark”>
<?php esc_html_e( ‘View More…’, ‘tribe-events-calendar-pro’ ) ?>
</p>But unfortunately it doesn’t work.
However, this is the functionality that I meanCheers
October 8, 2015 at 6:17 am #1012627George
ParticipantHey @Hans-Gerd,
Unfortunately it seems like this function will only work in the single-day.php widget template. One thing that might help is to specify a $day variable before the function is called; this is how it’s done by Events Calendar Pro itself, so it might make a difference:
$day = tribe_events_get_current_month_day();
tribe_events_the_mini_calendar_day_link();
October 8, 2015 at 8:26 am #1012743Hans-Gerd
ParticipantHey @George,
I’ve just tested. Unfortunately, this does not work, although I still have done a little change:$day = tribe_events_get_current_month_day(); echo tribe_events_the_mini_calendar_day_link();Without “echo” there is nothing to seen.
If choosing a different date, the events of today’s date will be shown after clicking on the link.
$day had to assign the date on the calendar.
But I fear that unfortunately is not possible, right?Cheers
Hans-Gerd
-
This reply was modified 10 years, 6 months ago by
Hans-Gerd.
October 9, 2015 at 8:49 am #1013176George
ParticipantHey @Hans-Gerd,
This is, indeed, unfortunately not possible as far as I can think:
If choosing a different date, the events of today’s date will be shown after clicking on the link.
$day had to assign the date on the calendar.
But I fear that unfortunately is not possible, right?I’m sorry to disappoint! 🙁
— George
October 13, 2015 at 9:20 am #1014179October 14, 2015 at 6:54 am #1014486George
ParticipantSorry to disappoint @Hans-Gerd! 🙁
If other questions or issues arise open a new thread at any time!
Sincerely,
GeorgeOctober 29, 2015 at 7:05 am #1019710Support 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. -
This reply was modified 10 years, 6 months ago by
-
AuthorPosts
- The topic ‘Linking to events at the day, I have chosen in Mini Calendar’ is closed to new replies.
