Skip to content

πŸ§ͺ A hands-on WordPress Theme from the course - "How to Create a Custom WordPress Theme" by Andrew Wilson.

Notifications You must be signed in to change notification settings

Hsins-Lab/wp-theme-andrew

Repository files navigation

Custom WordPress Theme: Andrew

Custom WordPress Theme: Andrew

πŸ§ͺ A hands-on WordPress Theme from the course - "How to Create a Custom WordPress Theme" by Andrew Wilson.

File Structure

β”œβ”€β”€ 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

References

About

πŸ§ͺ A hands-on WordPress Theme from the course - "How to Create a Custom WordPress Theme" by Andrew Wilson.

Resources

Stars

Watchers

Forks