I'm using template_redirect
to load custom template files based on the URL:
add_action( 'template_redirect', function()
{
if (is_singular('business'))
{
load_template(get_plugin_path() . 'templates/business.php');
}
});
It works for the most part, but a few CSS files don't appear to be loading. Specifically, Elementor Pro's frontend.min.css
file isn't loading even though some of its other files are. That messes up some of the styles on my site.
What causes this to happen, and how can I fix it?