Tagged: TEC, Template Files, the events calendar
-
AuthorPosts
-
December 16, 2020 at 12:49 pm #1267792
Hi Support,
What am I doing wrong?
I want to override the The Events Calendar files in my child theme:
1. I copied the files default-template.php and single-event.php in my child theme in Child theme/tribe-events/
2. I have put the code below in my functions.php,
I still get the single-event.php from enfold/config-events-calendar/views at https://socialmediafoto.nl/test/event/how-can-cities-contribute-to-local-energy-solutions/So what am I doing wrong?
Second question: what would I do if I wanted to use the new V2 theme files?
Thanks in advance,
Regards Ariane
/* CUSTOM THEME FILES EVENTS CALENDAR */ add_action('after_setup_theme', function() { if(is_child_theme()) remove_action('tribe_events_template', 'avia_events_tempalte_paths', 10, 2); }); add_action('tribe_events_template', 'avia_events_template_paths_mod', 10, 2); function avia_events_template_paths_mod($file, $template) { $redirect = array('default-template.php', 'single-event.php'); if(in_array($template, $redirect)) { $file = get_stylesheet_directory() . "/tribe-events/".$template; } return $file; }
December 22, 2020 at 8:02 am #1269251Hey ariane1001,
Please post us your login credentials (in the “private data” field), so we can take a look at your backend.
- Install and activate ” Temporary Login Without Password “.
- Go to ” Users > Temporary Logins ” on the left-side menu.
- Click ” Create New “.
- Add the email address for the account ( you can use (Email address hidden if logged out) ), as well as the ” Role ” making that the highest possible and the expiry about four days
( to be sure that we have enough time to debug ). - Click ” Submit “.
- You’ll now have a temporary account. Please provide us here in the private section the URL, so we can login and help you out.
When your issue is fixed, you can always remove the plugin!
If you prefer to not use the plugin, you can manually create an admin user and post the login credentials in the “private data” field.Best regards,
NikkoDecember 22, 2020 at 9:45 am #1269262Hi Nikko,
I created the login, see the private field.Looking forward to your findings,
Regards,
ArianeDecember 23, 2020 at 5:31 pm #1269572Hi Ariane,
Thanks for giving us admin access.
And I apologize I did not notice the typo in the code, avia_events_tempalte_paths should be avia_events_template_pathsAs for v2, please refer on Ismael’s answer on this thread: https://kriesi.at/support/topic/issues-with-events-calendar-and-events-calendar-pro/#post-1186624
Hope it helps :)Best regards,
Nikko -
AuthorPosts
- You must be logged in to reply to this topic.