π§ͺ A hands-on WordPress Theme from the course - "How to Create a Custom WordPress Theme" by Andrew Wilson.
βββ assets
β βββ css
β β ββ main.css
β βββ fonts
β β ββ ...
β βββ images
β β ββ ...
β βββ js
β ββ ...
βββ classes // PHP classes used for various functions to override WordPress functionality
βββ inc // stands for "includes", any sort of files to be included
βββ template-parts // split individual parts of templates
βββ templates // main template folder
βββ 404.php // served when user get a 404 server error
βββ archive.php // delivering an archive page, e.g. index of all blog posts
βββ comments.php // displaying and serving comments
βββ footer.php // responsible for the footer section
βββ front-page.php // display the site front page
βββ functions.php // [IMPORTANT] override and initiate different features of the theme
βββ header.php // responsible for the header section
βββ index.php // [REQUIRED] MUST HAVE. serves as the fallback
βββ page.php // displaying static pages (except blog posts and archive pages)
βββ readme.txt // file for putting copyright notices
βββ search.php // displaying search results
βββ single.php // displaying single blog posts
βββ style.css // [REQUIRED] MUST HAVE. master stylesheet for website