For the most part, when you visit a blog powered by WordPress, the blog appears on the main page. Lisa's personal blog at http://lisasabin-wilson.com, powered by WordPress (of course), shows her latest blog posts on the front page, along with links to the post archives (by month or by category). This setup is typical of a site run by WordPress (see Figure 2-1).
But the front page of Lisa's business site at http://ewebscapes.com, also powered by WordPress, contains no blog and displays no blog posts (see Figure 2-2). Instead, it displays the contents of a static page that Lisa created in the WordPress Dashboard. This static page serves as a portal to her design blog, her portfolio, and other sections of her business site. The site includes a blog, but also serves as a full-blown business Web site, with all the sections Lisa needs to provide her clients the information they want.
Both of Lisa's sites are powered by the self-hosted version of WordPress.org, so how can they differ so much in what they display on the front page? The answer lies in the templates in the WordPress Dashboard.
You use static pages in WordPress to create content that you don't want to appear as part of your blog but do want to appear as part of your overall site (such as a bio page, a page of services, and so on).
Creating a front page is a three-step process: Create a static page, designate that static page as the front page of your site, and tweak the page to look like a Web site, rather than a blog.
By using this method, you can create unlimited numbers of static pages to build an entire Web site. You don't even need to have a blog on this site, unless you want one.
To have a static page appear on the front page of your site, you need to create that page. Follow these steps:
The Add New Page page opens, where you can write a new page for your WordPress blog, as shown in Figure 2-3.
We explain the options on this page in the following section.
The page is saved to your database and published to your WordPress site with its own, individual URL (or permalink). The URL for the static page consists of your blog URL and the title of the page. For example, if you titled your page About Me, then the URL of the page is http://yourdomain.com/about-me. (See Book III, Chapter 3 for more information about permalinks.)
The Page Template option is set to Default Template. This setting tells WordPress that you want to use the default page template (page.php in your theme template files) to format the page you're creating. The default page template is the default setting for all pages you create; you can assign a different page template to pages you create, if your theme has made different page templates available for use. In Book VI, Chapter 6, you can find extensive information on advanced WordPress themes, including information on page templates and how to create and use them on your site.
Before you publish a new page to your site, you can change options to use different features available in WordPress. These features are similar to the ones available for publishing posts, which you can read about in Book IV, Chapter 1:
Typically, you don't see a lot of static pages that have the Comments feature enabled because pages offer static content that doesn't generally lend itself to a great deal of discussion. There are exceptions, however, such as a Contact page, which might use the Comments feature as a way for readers to get in touch with the site owner through that specific page. Of course, the choice is yours to make based on the specific needs of your Web site.
After you create the page you want to use for the front page of your web site, tell WordPress that you want the static page to serve as the front page of your site. Follow these steps:
In Figure 2-4, we chose to display a static page, and the Welcome page is the one we want to appear on the front page of the Web site.
WordPress displays the page you selected in Step 4 as the front page of your site. Figure 2-5 shows Lisa's site displaying the page she created as her front page.