Skip to main content

Boilerplate theme

Introduction

Here's a custom theme that you can use as a starting point, and of course feel free to modify its structure and add files (and remove files and functions) based on your project requirement, here are some stuff available in this theme:

  • Asset folders (img, css, js)
  • Sass folder (for scss files)
  • package.json (which contains package(s) to convert sass into css)
  • Partial files (header, footer,...)
  • HTML template folder, where you can place the HTML template and use it as a reference
  • Demo functions and code (in functions.php), it may contain more functions than you need so remove what you don't need and modify what needs to be modified, and for more details about the functions, check WordPress snippets docs.
  • Template files examples, in case you want to design a custom template for a page, or to customize viewing a post with a specific post type (single page template)
  • An initialized git repo
  • etc..

Notes

  • Make sure to run npm install after copying the theme folder to wp-content/themes/
  • Remove unnecessary files and add extra files as needed
  • This theme is just a starting point, and you still need to work on the design and add partial files,...

Download the theme

You can download the theme from here.