Web hosting reviews - CHAPTER 17 CUSTOMIZING YOUR BLOG S LAYOUT 481
CHAPTER 17 CUSTOMIZING YOUR BLOG S LAYOUT 481 For the layout s one sidebar, you could add more code to one of the existing sidebar files to include the information you want. But for this example, let s add a completely new sidebar. Create a new building block sidebar-c.php to use in the layout by copying sidebar-b.php. Listing 17-13 shows index.php. Similar to the code for the other sidebars, you test for the blog displaying a single page and change the main content width appropriately. You then use the single-page test to choose whether to include the new sidebar or both the old ones. The result is that on single pages, the new sidebar is displayed, and on all other pages, both sidebars A and B are displayed. Listing 17-13. Adjusting the Layout Based on the Single-Page Test in index.php
Sidebar C will contain almost all new content. The reader will want recent articles in the same category available as a possible next destination. Also, a list of links to external related resources is a valuable addition to the page. You can use WordPress s built-in Link Manager to collate the list of links. So, let s take a brief side trip to the Link Manager, before continuing with the new sidebar. A Digression: Using the Link Manager WordPress comes with a powerful Link Manager, which allows you to create lists of links as part of the content of your blog. If you remember from the history covered in Chapter 13, lists of links to other sites, or blogrolls, are one of the essential parts of a traditional blog. Click the Links menu in the administration pages to start managing your links. WordPress comes with a small list of links already built in. These link to some of the members of the WordPress team and are in the Blogroll category. Link Manager categories are separate from your post categories, but it can be a good idea to keep them pretty much in sync. Figure 17-20 shows the link categories in my sample blog. Apart from category 1, Blogroll, all the categories match the post categories in name and number. Because you cannot control the number a new category is given when you create it, it is
We would like to recommend you tested and proved virtual web hosting services, which you will surely find to be of great quality.