• Resolved mavellino

    (@mavellino)


    I am using the upcoming events widget on the sidebar in my site template. I would like to know how to have someone link to the actual calendar page from the widget. Not just be able to open the particular events showing, but be able to have a link to the entire calendar page.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Eran Miller

    (@eranmiller)

    No, but you can manually add a link to the calendar, by inserting it in the widgets-upcoming.php page

    Eran

    Thread Starter mavellino

    (@mavellino)

    Please explain exactly what I need to add to the widgets-upcoming .php page to create the link.

    Plugin Contributor Eran Miller

    (@eranmiller)

    Please note that any changes you make to the plugin will not carry over if you upgrade in the future. Therefore, unless you are very comfortable altering the code, or plan on using the current plugin version indefinitely, I recommend against making changes to the code, because there is no guarantee should future alterations be necessary.

    That said…
    1. open widget-upcoming.php
    2. search for

    echo $out;
    echo $after_widget;

    3. immediately before this line add the following:
    $out .= '<a href="link_to_your_calendar">link_text</a>
    please note: link_to_your_calendar should be a fully qualified link (i.e. https://www.domain.com/wordpress/calendar)
    also note: link_text is what you want your users to see
    (i.e. View The Calendar)

    Eran

    Thread Starter mavellino

    (@mavellino)

    OK. I won’t change it, especially since I am waiting for the upgrade your are working on for the widget header. For now I found a way to lay it out in the site that works. I would assume that when you have the new version I will get an update notification in the dashboard?
    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to link to Calendar page from the Widget’ is closed to new replies.