Web hosting faq - 466 CHAPTER 17 CUSTOMIZING YOUR BLOG S LAYOUT
466 CHAPTER 17 CUSTOMIZING YOUR BLOG S LAYOUT If you examine index.php (you can use the WordPress Theme Editor, as described in Chapter 16), you will see that it has become very simple and modular. Listing 17-5 shows the whole file. It has been reduced to a mere 18 lines. Each of the main areas of the file has now been extracted to its own file. Listing 17-5. The Lean index.php
Note that the header.php and footer.php files are not directly included by this file. Instead, the WordPress template functions get_header() and get_footer() have been called. These standard template tags automatically include a file called header.php and footer.php, respectively. If one of these files doesn t exist in the theme, the tags will include the corresponding files from the default theme. This modularity now allows you to be incredibly flexible in the layout of the theme. As an example, simply commenting out any combination of the three include files in the central section allows you to change which pieces of the page are included. Figures 17-1 through 17-5 demonstrate how you can change the layout by commenting out files.
We highly recommend you visit web and email hosting services if you need stable and cheap web hosting platform for your web applications.