Loading...

Templates

| 33 Comments on Templates

Explore versatile templates: page/post templates, header, footer, archive and more, tailored for seamless theme customization.

Theme templates

Page/post templates can be selected in the edit screen. Below is a list of all included template files and their functions:

  • bootscore
    • 404.php
      Page not found. File includes a widget position to add additional content.
    • archive.php
      Lists category, archive, and author posts.
    • comments.php
      Comments section.
    • footer.php
      The footer includes six widget positions, an additional menu, and a copyright with the current year and site title.
    • header.php
      • Includes links to the logo(s).svg file(s), which can be replaced in the (child) theme’s /assets/img/logo/ folder.
      • Contains the main menu, four widget positions, and the nav-toggler. The breakpoint for the navbar is set to lg.
    • page.php
      Default page template. If sidebar widgets are active, sidebar is shown on the right.
    • search.php
      Wrapper for search results.
    • searchform.php
      Classic searchform widget.
    • sidebar.php
      Shows the sidebar if widgets in the sidebar are active. The sidebar is displayed as an offcanvas below <lg breakpoint with a toggler button.
    • single.php
      Default single template. If sidebar widgets are active, sidebar is shown on the right.
    • theme.json
      Registers compiled Bootstrap colors in the Gutenberg editor.
    • woocommerce.php
      Displays shop pages such as archives, single products, and shop search results.
    • page-templates
      • page-blank.php
        Content lacks h1 tag, container and spacings. This template is well-suited for creating landing pages using plain HTML.
      • page-blank-container.php
        Similar to page-blank.php, but content is wrapped in a container.
      • page-full-width-image.php
        The template displays the featured image as a background image. If no image is available, the background appears dark. If the sidebar is active, it’s displayed on the right.
      • page-sidebar-left.php
        Similar to page.php, but If sidebar widgets are active, sidebar is shown on the left.
      • page-sidebar-none.php
        Similar to page.php, but has no sidebar.
    • single-templates
      • single-full-width-image.php
        The template displays the featured image as a background image. If no image is available, the background appears dark. If the sidebar is active, it’s displayed on the right.
      • single-sidebar-left.php
        Similar to single.php, but If sidebar widgets are active, sidebar is shown on the left.
      • single-sidebar-none.php
        Similar to single.php, but has no sidebar.
    • template-parts
      • footer
        • footer-menu.php
          nav-walker for the footer menu
      • header
        • actions.php
          Header buttons
        • actions-woocommerce.php
          Header buttons if WooCommerce is installed
        • collapse-search.php
          Search form collapse
        • collapse-search-woocommerce.php
          Search form collapse if WooCommerce is installed
        • main-menu.php
          nav-walker for the header menu
        • offcanvas-woocommerce.php
          Cart and account offcanvas if WooCommerce is installed
      • search
        • content-none.php
          If search term does not exists.
        • content-search.php
          List the search results.

Overriding templates in child

Before beginning to override templates in a child theme, take a quick look at our new filters. These filters allow editing files without needing to copy them to the child theme.

Templates can be overridden in child themes following the main theme’s folder structure or used to create new ones. The WordPress Template Hierarchy clarifies template determination.