The frontend Dashboard web page on my web site that makes use of my customized theme is displayed by a third-party plugin. The plugin helps its templates override, so I changed the plugin’s header template with my template’s header utilizing get_header()
operate, and the suitable header is displayed efficiently, nevertheless it does not enqueue my customized css file that I’ve in my theme’s capabilities.php
. I assume it is as a result of the plugin does not examine my theme’s capabilities.php
when diplaying the web page.
operate add_theme_scripts() {
wp_enqueue_style('theme-style', get_template_directory_uri() . '/property/css/important.css', false, '1.1', 'all');
}
add_action('wp_enqueue_scripts', 'add_theme_scripts');
How can I enqueue css with a third-party plugin template?