Skip to content

Major Overhaul of Archive Pages

Compare
Choose a tag to compare
@saltnpixels saltnpixels released this 19 Mar 14:15
· 84 commits to master since this release

ignition has been changing rapidly to work better with Gutenberg and to streamline the way you work.
Documentation is still being written.
Check the changelog to see all changes.
Here are some big ones:

  • Ignition is getting easier to plug and play blocks and extra functionality. You can simply create sass, js, and php files anywhere and they will be included automatically where needed. Files that you want added to custom.js can be in one of 3 places.
    • Inside the js/custom folder like always
    • inside template-parts, but it must start with an underscore _file.js
    • inside inc folder, but it too must start with an underscore _file.js
  • Any php files that start with an underscore found in template-parts folder or inc folder will be automatically included in functions.php for you. You don't need to go including them with include().
  • Now all build files are not included in the theme. Instead they get created when you run npm start and are put in a 'dist' folder. This will allow for building and deploying better and keeps the repo clean.
  • Added ability to have scripts added to dist folder without being part of custom.js file (just dont add an underscore to your js file and it will be output into the dist folder as a separate file).
  • New Ability: Theme Options Page! Now you can manage extra theme options and create post type option pages for each post type and change some other things via the theme options page.

NOTE: The old way of making archive pages will be removed soon, as well as the classic editor group fields (header and page sections), as you should now be using blocks.