Wordpress theme file structure
Getting familiar with the theme
CSS files - (found in theme_directory/css/) - CSS(Cascading Stylesheet) file is use to make apply style to the theme, this includes colors, fonts, spacing & design
header.php - This is the file used at top of the theme, where we can find the code for Menus both Top Right Menu and Main Menu. It contains all of the structure for the header of the theme
footer.php - This is the file used at bottom of the theme, where we can find the code for footer menus and copyright. It contains all of the structure for the footer of the theme
sideabar.php - This page is use to hold all the widget at the rightside of the theme. But this area is hidden if the page is set as one column layout.
page.php - This file controls the layout of the sub-pages of the theme
index.php - This file controls the layout of the homepage of the theme
one-column.php - This file controls the layout of the page when one-column layout is selected on the page creation wizard. Specifically this is the same as page.php but without the sidebar.
functions.php - This file loads all of the functions of the theme (menus, widgets, shortcodes). It also allows you to create and add your own custom functions.
Leave a comment
Let us know what you think!