Navigation System

Minimal header + hook-driven footer navigation.

Header Search Overlay

The theme header is intentionally minimal:

  • header.php renders branding + do_action( 'extrachill_header_top_right' )
  • inc/header/header-search.php hooks into extrachill_header_top_right and renders the search icon + overlay panel
  • assets/js/nav-menu.js controls open/close behavior for the search overlay

Relevant files:

  • header.php
  • inc/header/header-search.php
  • assets/js/nav-menu.js

Search Form

The search form comes from extrachill_search_form().

  • Function: extrachill_search_form()
  • Location: inc/core/templates/searchform.php

Secondary Header Navigation

Renders below the main header only when a plugin supplies items.

  • Action: extrachill_after_header
  • Template: inc/header/secondary-header.php
  • Filter: extrachill_secondary_header_items
php
add_filter( 'extrachill_secondary_header_items', function( $items ) {
    $items[] = array(
        'url'      => '/announcements',
        'label'    => 'Announcements',
        'priority' => 5,
    );

    return $items;
} );

Footer menus are hardcoded template includes registered via theme actions.

  • Main footer action: extrachill_footer_main_content

    • Default handler: extrachill_default_footer_main_content() in inc/core/actions.php
    • Template include: inc/footer/footer-main-menu.php
  • Below-menu action: extrachill_footer_below_menu

    • Default handler: registered inside inc/footer/footer-main-menu.php
    • Purpose: renders do_action( 'extrachill_render_newsletter_form', 'navigation' )
  • Bottom footer action: extrachill_below_copyright

    • Default handler: extrachill_default_below_copyright() in inc/core/actions.php
    • Template include: inc/footer/footer-bottom-menu.php

Universal Back-to-Home Navigation

  • Default handler: extrachill_default_footer_main_content() in inc/core/actions.php
  • Template include: inc/footer/footer-main-menu.php
  • Default handler: registered inside inc/footer/footer-main-menu.php
  • Purpose: renders do_action( 'extrachill_render_newsletter_form', 'navigation' )

Admin Menu Management

Main footer action: extrachill_footer_main_content

  • Default handler: extrachill_default_below_copyright() in inc/core/actions.php
  • Template include: inc/footer/footer-bottom-menu.php

Assets

  • Default handler: extrachill_default_footer_main_content() in inc/core/actions.php
  • Template include: inc/footer/footer-main-menu.php

Extensibility

  • Default handler: registered inside inc/footer/footer-main-menu.php
  • Purpose: renders do_action( 'extrachill_render_newsletter_form', 'navigation' )