How multidots/greenpresswp works
GreenPressWP is a lightweight WordPress theme. WordPress selects a theme template for a request; templates render post content and shared header/footer, while Customizer settings shape the presentation. The theme also provides asset/performance handling, block support, social links, and configurable metadata and scripts. The graph follows relationships visible in the supplied excerpts or explicitly described in the README; unsampled implementations are represented only where their subsystem is documented.
Main entry points: header.php Header · search.php Search view · index.php Index view · class-greenpresswp-customize.php Customizer
Components 16
Theme presentation
- Archive view
archive.php - Single view
single.php - Page view
page.php - Search view
search.php - Index view
index.php - Header
header.php - Footer
footer.php - Menu view
menu.php
Theme customization
- Customizer
includes/classes/class-greenpresswp-customize.php - Social links
includes/classes/class-social-icons.php
Theme runtime
- Theme core
includes/classes/class-greenpresswp.php - Block support
includes/classes/class-blocks.php - Asset handling
includes/classes/class-assets.php
Content rendering
- Content parts
template-parts - Template tags
includes/classes/class-template-tags.php
Other components
- WordPress
Connections 23
- WordPress → Archive view: selects template
README.md - WordPress → Single view: selects template
README.md - WordPress → Page view: selects template
README.md - WordPress → Search view: selects template
search.php - WordPress → Index view: selects fallback
index.php - Search view → Content parts: loads results
search.php - Index view → Content parts: loads posts
index.php - Content parts → Template tags: calls helpers
template-parts/content.php - Archive view → Header: loads shared header
- Single view → Header: loads shared header
- Page view → Header: loads shared header
- Search view → Header: loads shared header
search.php - Index view → Header: loads shared header
index.php - Search view → Footer: loads shared footer
search.php - Index view → Footer: loads shared footer
index.php - Customizer → Header: configures options
header.php - Customizer → Footer: configures footer
footer.php - Theme core → Customizer: initializes
includes/classes/class-greenpresswp.php - Theme core → Block support: initializes
includes/classes/class-greenpresswp.php - WordPress → Asset handling: requests assets
includes/classes/class-assets.php - WordPress → Customizer: runs hooks
includes/classes/class-greenpresswp-customize.php - Footer → Social links: renders configured links
- WordPress → Menu view: routes menu view