Templates and Template Parts - UCF/FinAid-Child-Theme GitHub Wiki

Navigation

Templates

Template Parts


Templates

In addition to templates provided in the parent theme, the following templates are available when using the FinAid Child Theme:

List

Post types: Page

Section List template examples on desktop and mobile screens

The list template displays an existing "list" Section with automatically-generated, affixed sidebar navigation (on smaller screen sizes, the sidebar is shifted above the list, and is not affixed).

The template is configured to load a unique set of meta fields when selected, which allow you to select the existing Section to display. Existing Sections to display with this template are limited to Sections using the "list" layout, and whose list content type is set to "List with Headings".

Custom content can be added above or below the list, as well as within the sidebar.


Template Parts

Template parts are a built-in mechanism within WordPress for defining smaller discrete chunks of a template.

The parent theme uses a unique template part system for loading page/post headers, site navigation, and the site footer. See the UCF WordPress Theme wiki page on template parts for more info.

Default header, no background image/video (header.php)

Default header template part examples on desktop and mobile screens

The default page header has been modified from the UCF WordPress Theme to display a black textured background behind the page title and subtitle.

This template part will only be used when:

  • a header image/video is not set, and
  • the "Header Content Type" of the page/post is set to "Title and Subtitle"

Custom header, no background image/video (header-custom.php)

The custom page header template part is custom to this theme, but results in similar behavior to the parent theme when displaying a page with no header image/video and custom header contents. See get_header_type() in includes/header-functions.php for details.

This template part will only be used when:

  • a header image/video is not set, and
  • the "Header Content Type" of the page/post is set to "Custom"

Default header content (header_content.php)

The default header_content template has been modified from the UCF WordPress Theme to adjust font styling on the header title and subtitle.

This template part will only be used when:

  • a header image/video is not set, and
  • the "Header Content Type" of the page/post is set to "Title and Subtitle"

Footer (footer.php)

The default footer template has been overridden in this theme to include breadcrumbs immediately above where the footer begins.