Theme Folder Structure

Understanding the theme’s file structure helps you customize it more efficiently β€” especially if you’re a developer or building a child theme.


πŸ“ Folder Breakdown

/documentation/
β”œβ”€β”€ assets/
β”‚   β”œβ”€β”€ css/
β”‚   β”œβ”€β”€ js/
β”‚   └── images/
β”œβ”€β”€ inc/
β”‚   β”œβ”€β”€ setup.php
β”‚   β”œβ”€β”€ customizer.php
β”‚   └── faq-post-type.php
β”œβ”€β”€ templates/
β”‚   β”œβ”€β”€ template-doc-single.php
β”‚   β”œβ”€β”€ template-faq.php
β”‚   └── template-changelog.php
β”œβ”€β”€ languages/
β”‚   └── documentation.pot
β”œβ”€β”€ functions.php
β”œβ”€β”€ style.css
β”œβ”€β”€ screenshot.png
β”œβ”€β”€ index.php
└── readme.txt

πŸ—‚οΈ Key Folders Explained:

  • assets/ – All front-end styles, scripts, and images.
  • inc/ – Contains theme setup, customizer settings, and custom post types.
  • templates/ – Custom templates for documentation pages, FAQs, and release notes.
  • languages/ – Localization files for translating the theme.

πŸ›  For Developers:

  • Hooks and actions are located in functions.php
  • Settings controls are modular and loaded in settings-framework.php
  • Use a child theme to safely override styles or templates

Next

Leave a Reply

Your email address will not be published. Required fields are marked *