Theme Structure - Newfangled Theme Structure - Newfangled

Newfangled Documentation

Newfangled Documentation

  1. Home
  2. Docs
  3. Newfangled Starter Theme
  4. Theme Structure

Theme Structure

The Newfangled Theme provides an example organizational structure to manage your templates and assets. Aside from the key files and functionality described here, this structure can be used as-is or modified as needed.

.git/
│
README.md
│
wp-content/themes/newfangled-theme/   
│
└─── style.css
│
│       ** Loads the css partials
│
└─── functions.php
│
│       ** Example theme functionality, and loads required functionality from nf-inc
│
│
└─── assets/ 
│   │
│   └─── css/
│   │   │       
│   │   └─── style.css
│   │   │       
│   │   │       ** CSS loader
│   │   │       
│   │   └─── demo/
│   │   │       
│   │   │       ** Example theme styles
│   │   │
│   │   └─── lib/
│   │   │       
│   │   │       ** Example 3rd-party styles
│   │   │
│   │   └─── nf/
│   │       
│   │           ** Styles for the Newfangled elements
│   │
│   └─── images/ 
│   │
│   │           ** Example images
│   │
│   └─── js/ 
│       │
│       └─── demo/
│       │           
│       │       ** Example theme scripts
│       │           
│       └─── lib/
│               
│               ** Example 3rd-party scripts
│
└─── nf-inc/ 
│               
│       ** Required Newfangled functionality and filters
│
│
└─── nf-templates/ 
|       
|       ** Template overrides for Newfangled plugin templates
│   
│
└─── templates/ 
 
        ** Example template partials for the theme styling