How can I add a custom header to a custom template in a plugin without using the theme folders
The get_header() functions is designed for themes. It usually look for header file in child theme first and then parent theme. You should be creating custom header under theme directory instead of in a plugin. But if you really must have to load header file from plugin then you have to create a custom function. … Read more