Overview
The WRDPRSWRDPRS Boilerplate is a base theme used by Hustle & Praise for quickly building WordPress websites. It includes various build tools such as Babel and webpack for transpiling and compiling JavaScript, as well as compiling images and fonts. The theme also utilizes a variety of technologies such as TypeScript, Tailwind CSS, PostCSS, and Advanced Custom Fields.
Features
- Build Tools: Babel and webpack are used for transpiling and compiling JavaScript, as well as compiling images and fonts.
- TypeScript: JavaScript is written in TypeScript for type-safety and is compiled using SWC for browser compatibility.
- Tailwind CSS: Styles are written in Tailwind CSS, with the main.css file containing the imports. Component files are also included for creating reusable elements.
- PostCSS: PostCSS is used as the build tool for compiling CSS, with plugins such as postcss-nested, postcss-import, autoprefixer, and cssnano.
- PHP: The functions.php file loads starter files located in the /lib folder, including the CPT.php class for creating custom post types, the post_types.php file for creating basic post types, the setup.php file for handling default WordPress settings, and the wrapper.php file for page templates.
- Template Wrapper: Each page extends from the base.php layout file, eliminating the need to include header and footer files on each template.
- Advanced Custom Fields: The theme utilizes ACF Pro for setting fields on page templates, and also includes a Theme Settings Options page if applicable.
Summary
The WRDPRSWRDPRS Boilerplate is a powerful base theme for quickly building WordPress websites. It includes modern build tools for JavaScript and CSS, supports TypeScript for type-safe development, and leverages Tailwind CSS for easy styling. The theme also incorporates advanced features such as custom post types and the use of Advanced Custom Fields for additional flexibility. With a well-structured file organization and layout, this boilerplate provides a solid foundation for WordPress development projects.