Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.
The strict minimum is:
Optionnaly, you can have header.php, footer.php and sidebar.php, those files will contain the code for the header, the footer and the sidebar and can be included from index.php (or other files I will mention later) using the functions get_header(), get_footer() and get_sidebar(). Doing this will make your index.php easier to use and read and make adding more template files easier.
OK, now we have index.php, we know that everything goes through it, but WordPress is smarter than that, it can use other template files for other purposes, like:
But how does it know which file to load? It does a lookup of some sort that is explained in this graphic, so for example, when you request the page /hello-world which has the id of99, it will look for template files in this order and grab the first one it find and forms the page from that template:
Basicaly the below files are needed to you to make your wordpress theme. You can add as much more file as you created the theme.
Files you need to create :
This is the file that contains the code of header section. Header section is most top section of page. Whenever it is needeed to change the header of a page then change the code written in this file and it automatically change the output of header senction on web. this file is written in a specific language that is PHP.