• Resolved proximitas

    (@proximitas)


    I am trying to create a next event banner for the top of my home page. I have inserted the Event List/Legacy Widget block into a row and have configured the Legacy Widget to show only 1 event and left the Title entry blank.

    How can I remove the “View Calendar” link from the bottom of this widget on the home page without affecting my other calendar views on other pages?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support tristan083

    (@tristan083)

    Hi @proximitas ,

    Thank you for reaching out.

    Kindly try the following custom snippet (by adding it to your theme’s functions.php file or through a Code Snippets plugin) to see if this works for you.

    add_filter ( 'tribe_events_views_v2_view_template_vars', function ( $template_vars, $view ) {
    if ( $view->get_view_slug() == 'widget-events-list' ) {
    $template_vars['view_more_link'] = '';
    $template_vars['view_more_text'] = '';
    }
    return $template_vars;
    }, 20, 2 );
    Plugin Support Darian

    (@d0153)

    Hi there,

    It appears that we haven’t heard back from you in a while, so I’ll assume that the matter has been resolved. If you need any more help, feel free to start a new thread and we’ll be happy to assist you.

    Thread Starter proximitas

    (@proximitas)

    Sorry for the late reply. Yes, this snippet worked. Thank you.

    Plugin Support Darian

    (@d0153)

    Hi @proximitas

    Thank you for confirming that everything is now working.

    If you have a moment to review, it would be greatly appreciated.

    https://www.ads-software.com/support/plugin/the-events-calendar/reviews/

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.