Custom Templates
Taproot uses the Hybrid Core framework for advanced templating capabilities. This means that custom templates added to your theme using the standard WordPress template naming scheme will not be automatically available.
Templates can be registered from your functions.php file in the following manner:
add_action('hybrid/templates/register', function($templates) { $templates->add('my-custom-template.php', [ 'label' => __( 'Custom Template' ), 'post_types' => [ 'page', 'post' ] ]); });
The file name added should be relative to the resources/views
directory in your child theme.