Ahoy there! Modernize your WordPress development and ship your WordPress themes faster than ever. PressGang anchors your workflow in modern development practices. Build cleaner, faster, smarter themes and navigate your development course to calmers seas.
PressGang is a powerful and flexible WordPress parent theme framework designed to streamline theme development and enhance customization capabilities. As a parent theme framework, PressGang serves as a foundation upon which child themes can be built, allowing developers to create custom themes more efficiently while inheriting the robust features and structure of the PressGang parent theme.
- Rapid Development: Engineered for quickly building WordPress themes with clean and modern coding standards, accelerating the development process by providing a solid foundation and tools.
- Timber Integration: Utilizes the Timber library, separating template code from PHP logic through the Twig templating engine, resulting in cleaner, more maintainable code.
- MVC-inspired Architecture: Introduces the concept of Controllers to WordPress theme development, expanding on the Model-View-Controller (MVC) approach for better organization and separation of concerns.
- Modern PHP Practices: Emphasizes Configuration over Convention, inspired by frameworks like Laravel, allowing for bootstrapping repetitive WordPress tasks via configuration files, reducing boilerplate code, and increasing developer productivity.
- Composer and PSR-4: Utilizes Composer for dependency management and adheres to PSR-4 coding standards for autoloading, ensuring a consistent and modern code structure.
- Flexibility and Customization: Maintains the core WordPress structure, allowing developers to leverage their existing WordPress knowledge while benefiting from additional features. It provides powerful tools and conventions but remains flexible for direct interaction with WordPress as needed.
By leveraging these features, PressGang empowers developers to create sophisticated, performant, and maintainable WordPress themes with greater ease and efficiency.
To chart a course for success with PressGang, it helps to be familiar with these trusty tools:
- Timber - Just like a seasoned shipwright uses the best timber, PressGang is built on the Timber library to craft clean, powerful themes.
- Composer - Manage your dependencies and keep everything shipshape with Composer.
- Grunt - Ensure plain sailing with task automation.
PressGang is designed as a WordPress parent theme that acts as a library for your child theme. To get started, you will need to create a child theme.
The fastest way to get up and running is by using our pressgang-child repository, which includes a grunt-init template for creating a PressGang-ready child theme.
To get started:
-
Clone the pressgang-child repository:
git clone https://github.com/pressgang-wp/pressgang-child your-theme-name
-
Navigate into your new theme directory:
cd your-theme-name
-
Follow the instructions in the README to set up your environment and start developing your child theme.
If you prefer to start from scratch, you can manually set up your PressGang environment.
-
Clone the PressGang repository:
git clone https://github.com/pressgang-wp/pressgang
-
Create your own child theme by following the WordPress guidelines for child themes.
You can also include PressGang as a dependency in your project using Composer.
-
Require the PressGang package via Composer:
composer require pressgang-wp/pressgang
-
Create and configure your child theme to extend the PressGang parent theme.
For detailed instructions on setting up and configuring your child theme, refer to the PressGang documentation.
Uncover the buried treasure at: https://docs.pressgang.dev/
PressGang is open-sourced software licensed under the MIT license.