CHAPTER 16 CHANGING THE LOOK OF YOUR BLOG 445 In this example, you will remove the list of buttons underneath the calendar and add a list of news stories using the RSS Link List plug-in introduced in Chapter 15. To remove the buttons from the rightmost column, choose the Main Template index.phpfrom the drop-down list of theme files on the right side of the page. When that file loads, find the section of index.phpthat begins
. Remove the code shown in Listing 16-2. Listing 16-2. HTML Code to be Removed from index.php
If you check the blog now after saving and/or uploading your changed file, you will find the buttons have gone! Adding the RSS Feed Now you will add in a call to display an RSS feed using the WordPress RSS Link List plug-in you installed in the previous chapter. In that chapter, you saw how to add a special tag to a blog post or page and have the plug-in convert that tag to a list of links driven from an external RSS feed. This time, you want the list of links to appear in the sidebar. To do this, use the template PHP function provided by the plug-in, rather than the special tag, which works only in posts or pages. The template function provided by the plug-in is _rssLinkList(). This function can take a number of parameters, any of which can be provided in the call to the function. If you don t provide any parameters, the function uses a complete set of defaults, including the default RSS feed of http://del.icio.us/rss. For this example, you will use a different del.icio.us RSS feed, which will provide a list of WordPress tools. Also, by default, the plug-in outputs the links in list item markup (
). You will need to add unordered list tags (
), so that you can address this list in the CSS to improve its appearance. Add the code marked in bold in Listing 16-4 to the template.
Searching for affordable and proven webhost to host and run your servlet applications? Go to Linux Web Hosting services and you will find it.
Posted in MySQL5 | No Comments »
Saturday, February 9th, 2008
444 CHAPTER 16 CHANGING THE LOOK OF YOUR BLOG image for highlights and so on. See Figure 16-10 for the progress so far. You can download this version of the theme, c3romask2-step1.zip, from the Source Code area of the Apress web site (http://www.apress.com). Figure 16-10. The new theme with all images and colors in place Changing the Template If you want to make modifications to your theme files, you can edit them in WordPress s Theme Editor, as long as the theme files are writable by the web server process (see the Setting File Upload Options section in Chapter 14). To activate the Theme Editor, go to the Presentation administration page and click the Theme Editor tab. Make sure that the theme you want to edit (c3ro mask 2 in this example) is selected in the drop-down list. Alternatively, you can edit the theme files on your machine with your favorite editor and upload them when you are ready. In both cases, you will want to make a backup copy, in case something goes wrong.
Please visit our professional web hosting services to find out about cheap and reliable webhost service that will surely answer all your demands.
Posted in MySQL5 | No Comments »