How can I add a custom header to a custom template in a plugin without using the theme folders
There is a lot of documentation on how to create custom headers for a theme. For example, if I wanted to add a header named:
header-custom.php
I would add this to my template file:
get_header('custom');
If custom-header.php was in either the same directory as the page template or the 'root' theme directory, the header will load as expected.
I can't find anything for custom headers for page templates in a plugin. For example, I have a template file single-node.php located in my includes folder. How could I add something like:
get_header('custom');
and store that in my includes directory or somewhere else in my plugin?
Topic custom-header templates plugin-development plugins Wordpress
Category Web