Linking to events at the day, I have chosen in Mini Calendar

Home Forums Calendar Products Events Calendar PRO Linking to events at the day, I have chosen in Mini Calendar

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1011827
    Hans-Gerd
    Participant

    Hey,
    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

    #1011954
    George
    Participant

    Hey @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,
    George

    #1012120
    Hans-Gerd
    Participant

    Hey @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/9fd61ae432c1c0580b90

    I 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

    #1012125
    Hans-Gerd
    Participant

    Hey @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 mean

    Cheers

    #1012627
    George
    Participant

    Hey @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();

    #1012743
    Hans-Gerd
    Participant

    Hey @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.
    #1013176
    George
    Participant

    Hey @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

    #1014179
    Hans-Gerd
    Participant

    Hey @George,
    would have been great. 🙁

    Thanks for your help

    #1014486
    George
    Participant

    Sorry to disappoint @Hans-Gerd! 🙁

    If other questions or issues arise open a new thread at any time!

    Sincerely,
    George

    #1019710
    Support Droid
    Keymaster

    This 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.

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Linking to events at the day, I have chosen in Mini Calendar’ is closed to new replies.