PHP code example of rtcamp / theme-elementary
1. Go to this page and download the library: Download rtcamp/theme-elementary library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
rtcamp / theme-elementary example snippets
functions.php # PHP entry point
inc/ # project PHP (PSR-4 root)
├── Autoloader.php # wraps vendor/autoload.php with graceful failure
├── Main.php # theme bootstrap — loads services
├── Abstracts/ # base classes for theme features
├── Helpers/ # stateless static utilities
├── Core/ # theme-wide infra — assets, components, menus, templates, theme setup
└── Modules/ # feature areas
├── BlockExtensions/ # block render filters and integrations
├── Settings/ # admin settings pages (extend AbstractSettingsPage)
└── Shortcodes/ # shortcodes
src/{components,css,js,fonts,images}/ # frontend sources → assets/build/
parts/ patterns/ templates/ # block parts, patterns, templates
template-parts/ # PHP template partials
styles/ # theme.json style variations
theme.json style.css # theme config
bin/ # init and scaffold scripts
tests/{js,php}/ # JS & PHP tests
vendor/rtcamp/wp-primitives/ # framework (Composer-managed; do not modify)