Crystaltech web hosting - 478 CHAPTER 17 CUSTOMIZING YOUR BLOG S LAYOUT

478 CHAPTER 17 CUSTOMIZING YOUR BLOG S LAYOUT Figure 17-17. Default paging links A Wider Picture For a long article, you might prefer a wider layout than normal, but still retain a sidebar to display related information. You also might want to add more structure and formatting to the story itself. Figure 17-18 shows an example of a multiple-page article with headings and images, along with a sidebar of related stories and links to resources. In this section, I will take you through the necessary changes to achieve this look. The first step is to change the appearance of the paging links described in the previous section. In the include file main-content.php, which defines The Loop that outputs the articles (see Chapter 16 for more information about The Loop), change the call to wp_link_pages. Add parameters to produce the Next Page and Previous Page links you can see in Figure 17-18. Listing 17-11 shows the changes in the code (highlighted in bold). Listing 17-11. Paging Link Code in main-content.php

Leave a Reply