A WordPress CLI plugin for generating Full Site Editing (FSE) themes with optional Sass support.
To use the FSE Theme Generator Plugin, follow these steps:
-
Download the ZIP archive of this repository by clicking on the "Code" button and selecting "Download ZIP," or clone the repository to your local machine using Git:
git clone https://github.com/HILAYTRIVEDI/fse-theme-generator.git
-
Upload the extracted plugin folder to your WordPress installation's wp-content/plugins/ directory.
-
Activate the plugin through the WordPress admin dashboard:
- Log in to your WordPress admin panel.
- Go to "Plugins" in the left-hand menu.
- Find the "FSE Theme Generator" plugin in the list.
- Click the "Activate" button.
The plugin is now ready to use. You can access it using the WordPress CLI (wp) in the command line.
Generate a new FSE theme using the following command:
wp generate_fse_theme <theme-name> [--sass=<sass>]
<theme-name>
: The name of the theme you want to generate.--sass=<sass>
: Whether to support Sass. Use --sass=true to enable Sass support.
Generate a new FSE theme named "my_fse_theme"
with Sass support:
wp generate_fse_theme my_fse_theme --sass=true
This plugin is licensed under the GPL-2.0+ license. You are free to use, modify, and distribute it as per the terms of the GPL-2.0+ license.
Created by Hilay Trivedi.
The FSE Theme Generator Plugin is based on the WordPress CLI framework.
If you'd like to contribute to the FSE Theme Generator Plugin, please report issues and submit pull requests.