disable clicking event widget

This topic contains 4 replies, has 2 voices, and was last updated by  Mel Fisher 9 years, 1 month ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #21383

    Hi,

    I am displaying an agenda widget on my home page. I want to disable the view option when a user clicks an event in the widget.

    I tried the following in the code snipplet plugin:

    add_filter('eventorganiser_widget_calendar_event_link', '__return_false' );
    

    But it did not work? where can I find this filter?

    Thanks Mel

    • This topic was modified 9 years, 1 month ago by  Mel Fisher.
    • This topic was modified 9 years, 1 month ago by  Mel Fisher.
    Mel Fisher
    #21402

    That filter is for the calendar widget – there’s no such filter for the agenda widget unfortunately.

    In a later version, the agenda widget template may be able to be overridden by a theme/plugin but this woint be for a while.

    Stephen Harris
    #21404

    Hiii,

    ok thank you for the response… Can this be added as a feature? how do I or others vote for it… 🙂 It would be interesting to have the view button be more flexible with the following options:
    – disable
    – link path to a url (page etc.)

    For example: I would like the user to click view and direct them to a page or as I
    said disable it for certain events.

    Please close this topic.

    Thanks
    Mel

    Mel Fisher
    #21407

    Hi Mel,

    I’ve created a ticket here: https://github.com/stephenharris/Event-Organiser/issues/340 – people are welcome to ‘+1’ it.

    Stephen Harris
    #21439

    Thank you…..

    Mel Fisher
Viewing 5 posts - 1 through 5 (of 5 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.