View Calendar link does not work
-
Hello,
I built my website with Elementor. I use a widget from the category “WordPress” called “Events List”. The widget contains a link (that I cannot configure) to the page https://next.pfadi.sh/events/. However, The Events Calendar plugin defines to following link for my calendar webpage: https://next.pfadi.sh/index.php/events/. This means my widget leads nowhere.
How can I fix this?
I use version 6.3.6 of The Events Calendar. At the moment, this is the latest version available.
Kind regards,
FelixThe page I need help with: [log in to see the link]
-
Hi Felix,
Thank you for reaching out.
Kindly try the custom snippet below to change the “View Calendar” link. You can either append this to your theme’s functions.php file or by using a 3rd-party code editor like Code Snippets.
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'] = 'https://next.pfadi.sh/url-to-your-widget-calendar'; } return $template_vars; }, 20, 2 );Dear Tristan
Your proposed solution worked. Thank you very much!
Kind regards, Felix
Hi @felixmerz
Thanks for your confirmation and I’m glad that it is now working.
If you have a minute, a great review from you would be amazing!
https://ww.wp.xz.cn/support/plugin/the-events-calendar/reviews/
I’ll close this thread for now, but please do not hesitate to start a new thread if you have other issues at all. This allows us to track topics/issues efficiently and follow the WordPress Forum Guidelines.
The topic ‘View Calendar link does not work’ is closed to new replies.