I’m having issues overwriting the event-mod.css file in my enfold child theme. I was able to pull in the single-event.php to the child theme, but now the styles aren’t rendering. How do I include the event-mod.css file in my child theme? I tried this, but it didn’t work:
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(‘single-event.php’, ‘event-mod.css’);
if(in_array($template, $redirect))
{
$file = get_stylesheet_directory() . “/tribe-events/”.$template;
}
return $file;
}
Hey rwelker,
Unfortunately it would require quite some time and customization of the theme to achieve this, so I am sorry to tell you that this is not covered by our support. However if its really important for you to get this done, you can always hire a freelancer to do the job for you :)
Best regards,
Andy