Chisel A WordPress Development Framework


Once your project is setup, you need to add pages, you will be working on, to it.

Adding pages

From the command line type:

yo chisel:page "Page Name"

for example

yo chisel:page "Home"

You can also create multiple pages at once by separating page names with space:

yo chisel:page "Home" "About Us" "Contact Us" "News"

WordPress Website

When you add a page on WordPress project:

  • Twig template is automatically created in wp/wp-content/themes/[your-theme]/templates/page-{page-slug}.twig
  • Page is accessible at project-name.test/{page-slug}
  • If you haven’t before, flush the rewrite rules Settings -> Permalinks -> Save changes

Front-end templates

When you add a page on front-end templates project, the project index is regenerated and the page is added to it.

Removing pages

On the front-end templates project you can remove pages by deleting them from .yo-rc.json and running yo chisel:page (without any page name) to regenerate the project index.

Craftsmanship and Work Ethics of Old Masters

Xfive - Delivering digital products since 2005

For more than a decade we’ve been helping creatives bring their visions to life in the digital world.

Xfive is a partner for design and web agencies looking to expand their capacity in web application development where care is the foundation of everything we do.

Work with us