Skip to main content

File Organization

Below is a rundown of how the Method theme is organized and structured...

โ”œโ”€โ”€ assets/
โ”‚ โ”œโ”€โ”€ css
โ”‚ โ”‚ โ”œโ”€โ”€ admin-styles.css
โ”‚ โ”œโ”€โ”€ images/
โ”‚ โ”œโ”€โ”€ fonts/ <- add if your theme includes webfonts
โ”‚ โ”œโ”€โ”€ js/
โ”‚ โ”‚ โ”œโ”€โ”€ scripts.js <- compiled via 'gulp scripts'
โ”‚ โ”‚ โ””โ”€โ”€ scripts.min.js <- compiled + minified via 'gulp scripts'
โ”œโ”€โ”€ inc/
โ”‚ โ”œโ”€โ”€ bootstrap/
โ”‚ โ”‚ โ””โ”€โ”€ ...
โ”‚ โ”œโ”€โ”€ bootstrap-icons/
โ”‚ โ”‚ โ””โ”€โ”€ ...
โ”‚ โ”œโ”€โ”€ jarallax/
โ”‚ โ”‚ โ””โ”€โ”€ ...
โ”‚ โ”œโ”€โ”€ matchHeight/
โ”‚ โ”‚ โ””โ”€โ”€ ...
โ”‚ โ”œโ”€โ”€ tgm-plugin-activation/
โ”‚ โ”‚ โ””โ”€โ”€ ...
โ”‚ โ””โ”€โ”€ wp-bootstrap-navwalker/
โ”‚ โ”‚ โ””โ”€โ”€ ...
โ”œโ”€โ”€ lib/ <- theme functions
โ”‚ โ”œโ”€โ”€ admin-customization.php
โ”‚ โ”œโ”€โ”€ class-method-layout.php
โ”‚ โ”œโ”€โ”€ class-theme-layout.php
โ”‚ โ”œโ”€โ”€ cmb2-helper-functions.php
โ”‚ โ”œโ”€โ”€ cmb2-metaboxes.php
โ”‚ โ”œโ”€โ”€ cmb2-options-loader.php
โ”‚ โ”œโ”€โ”€ helper-functions.php
โ”‚ โ”œโ”€โ”€ post-types-and-taxonomies.php
โ”‚ โ”œโ”€โ”€ theme-customization.php
โ”‚ โ””โ”€โ”€ theme-setup.php
โ”œโ”€โ”€ .gitignore
โ”œโ”€โ”€ .gitlab-ci.yml
โ”œโ”€โ”€ .jshintrc <- required for scripts gulp task to work
โ”œโ”€โ”€ 404.php
โ”œโ”€โ”€ CHANGELOG
โ”œโ”€โ”€ LICENSE
โ”œโ”€โ”€ footer.php
โ”œโ”€โ”€ front-page.php
โ”œโ”€โ”€ functions.php
โ”œโ”€โ”€ gulpfile.js
โ”œโ”€โ”€ header.php
โ”œโ”€โ”€ index.php
โ”œโ”€โ”€ login.css
โ”œโ”€โ”€ package.json
โ”œโ”€โ”€ page.php
โ”œโ”€โ”€ screenshot.png
โ”œโ”€โ”€ single.php
โ”œโ”€โ”€ style.css
โ”œโ”€โ”€ theme.css
โ”œโ”€โ”€ theme.min.css
โ””โ”€โ”€ theme.scss