Skip to content

Development Setup

mark-c-woodard edited this page Aug 14, 2023 · 4 revisions

Prerequistes:

  1. A local WordPress development environment. Local by Flywheel is a good option.
  2. npm installed and ready to run globally.
  3. composer installed and ready to run globally.
  4. (optional) phpcs running the WordPress Coding Standards

To start developing for Kadence Blocks:

  1. Clone this repository into your site's wp-content/plugins directory
  2. Navigate in to the repository folder
  3. Run composer install
  4. Run npm install
  5. Run npm run start (js and style files will now be watched / updated on edits)
  6. Make sure the plugin is activated from your site's wp admin dashboard.

Pointers:

  • Blocks
    • Gutenberg registration, edit and save files are found in src/blocks
    • Frontend files are found in includes/blocks
    • @kadence package files can be found in src/packages. Caution! These can be in submodules.
  • Misc styles and scripts are found in src/assets
Clone this wiki locally