Skip to content
Taproot
Taproot
WordPress theme

main

  • Blocks
    • Text
      • Paragraph
      • Heading
      • List
      • Pullquote
      • Quote
      • Code
      • Preformatted
      • Table
      • Verse
    • Media
      • Image
      • Gallery
      • Audio
      • Cover Image
      • File
      • Media Text
      • Video
    • Design
      • Button
      • Columns
      • Separator
      • Spacer
    • Embeds
      • YouTube
      • WordPress
      • Twitter
    • Widgets
      • Social Icons
      • Latest Posts
  • Layouts
    • Sidebar on right
    • Sidebar on left
    • Center
    • Wide
    • Wide/Left
    • Wide/Center
  • Docs
  • Download

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.

Docs

  • Getting Started
  • Customizer
    • General
    • Layout
    • Header
    • Footer
    • Colors
    • Typography
    • Post Types
      • Posts
        • Post
        • Post Archive
        • Post Entry
      • Pages
    • Navigation
    • Sidebar
  • Single Page/Post Options
  • Block Editor
  • Custom Templates
  • Custom Sidebars

© 2021 Sky Shabatura