Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #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;
    }
    #1269251

    Hey ariane1001,

    Please post us your login credentials (in the “private data” field), so we can take a look at your backend.

    1. Install and activate ” Temporary Login Without Password “.
    2. Go to ” Users > Temporary Logins ” on the left-side menu.
    3. Click ” Create New “.
    4. 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 ).
    5. Click ” Submit “.
    6. 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,
    Nikko

    #1269262

    Hi Nikko,
    I created the login, see the private field.

    Looking forward to your findings,
    Regards,
    Ariane

    #1269572

    Hi 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_paths

    As 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

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