Although there are many folders and files in WordPress, but there are only a few files and folders which we keep using a lot, it is useful for us in customization, the rest of the folders and files are folders and files which we never disturb.
Do you want to learn about WordPress files and directory structure? All core WordPress files, themes, plugins, and user uploads are stored on your website hosting server. In this beginner’s guide, we’ll explain the WordPress file and directory structure.
Some important files and folder must be present in the custom wordpress theme such as:
- style.css
- index.php
- page.php
- single.php
- archive.php
- header.php
- footer.php
- sidebar.php
- screenshot.png
- functions.php, etc.
style.css
/*
Theme Name: Custom Theme
Theme URI: https://pktechnology.in/my-custom-theme
Author: Pankaj Kumar Loniya
Author URI: https://pktechnology.in/
Description: Our default theme for 2024 is designed to take full advantage of the flexibility of the block editor. Organizations and businesses have the ability to create dynamic landing pages with endless layouts using the group and column blocks. The centered content column and fine-tuned typography also makes it perfect for traditional blogs. Complete editor styles give you a good idea of what your content will look like, even before you publish. You can give your site a personal touch by changing the background colors and the accent color in the Customizer. The colors of all elements on your site are automatically calculated based on the colors you pick, ensuring a high, accessible color contrast for your visitors.
Version: 1.0.0
*/