How automattic/_s works
Underscores (_s) is an archived WordPress starter theme intended to be customized into a complete theme, not used as a parent theme. Its main workflow is WordPress selecting a PHP template for a request, rendering post or page content through template parts and helper tags, and assembling the page with shared theme elements and styles. The graph also preserves documented theme customization, responsive navigation, and WooCommerce and Jetpack compatibility. Some template and integration details are represented only at their documented or visible call boundaries; unsampled behavior is not inferred.
Main entry points: functions.php Theme setup · index.php Default template · search.php Search template · template-tags.php Template tags
Components 23
Theme runtime
- Theme setup
functions.php - Default template
index.php - Search template
search.php - Archive template
archive.php - Single template
single.php - Page template
page.php
Content rendering
- Not found
template-parts/content-none.php - Post content
template-parts/content.php - Search result
template-parts/content-search.php - Page content
template-parts/content-page.php - Template tags
inc/template-tags.php
Theme interface
- Shared header
header.php - Shared footer
footer.php - Sidebar
sidebar.php - Menu behavior
js/navigation.js - Theme styling
sass/style.scss - Custom header
inc/custom-header.php - Customizer support
inc/customizer.php - Live preview
js/customizer.js
Plugin integrations
- WooCommerce support
inc/woocommerce.php - Jetpack support
inc/jetpack.php
Other components
- Site visitor
- WordPress
Connections 22
- Site visitor → WordPress: requests page
- WordPress → Default template: selects fallback
- Theme setup → Custom header: loads
functions.php - Theme setup → Template tags: loads
functions.php - Theme setup → Customizer support: loads
functions.php - Theme setup → WooCommerce support: conditionally loads
functions.php - Theme setup → Jetpack support: conditionally loads
functions.php - Theme setup → Menu behavior: enqueues
functions.php - Default template → Post content: renders
index.php - Default template → Not found: renders
index.php - Default template → Shared header: loads
index.php - Default template → Sidebar: loads
index.php - Default template → Shared footer: loads
index.php - Search template → Search result: renders
search.php - Search template → Not found: renders
search.php - Search template → Shared header: loads
search.php - Search template → Sidebar: loads
search.php - Search template → Shared footer: loads
search.php - Post content → Template tags: calls
template-parts/content.php - Search result → Template tags: calls
template-parts/content-search.php - Theme setup → Theme styling: enqueues stylesheet
functions.php - Theme setup → Live preview: supports live preview