Adjusting the Links

The links appear in the sidebar, but they are not quite as pretty as you might like. Let's add some style rules for the header and the list to the end of the style.css style sheet, as shown in Listing 16-5.

Listing 16-5. CSS Rules for the List of Links Added to style.css

margin-top: 1.2em;

ul.rsslinks {

list-style-type: none; margin:0;

padding-left: 10px;

ul.rsslinks li { margin-top: 4px; margin-left: 1em; text-indent: -1em;

Also notice that some of the links have a description after them. If the RSS feed includes a description, the plug-in will display it by default. You can turn that off quite easily. Another default the plug-in provides is the number of links, which is 15. I think 10 is a more suitable number. The resultant code in the index.php template file looks like Listing 16-6.

Listing 16-6. Additional Parameters to Restrict the Link List Output in index.php

<ul class="rsslinks"> <?php _rssLinkList(array("rss_feed_url"=> "http://del.icio.us/rss/tag/wordpress+tools", "show_description"=>FALSE, "num_items"=>10)); ?> </ul>

If you check your blog page now, it should look like Figure 16-12. You will see the list looks much neater and blends in with the rest of the content.

You have now added an external resource as part of the blog. Here, I chose one that is pertinent to the readers. You could also have added a feed of related news items from another web site or a list of the latest topics from a companion forum. The possibilities are quite extensive. As long as there is a resource available in RSS format, you can add it this way.

Saturday, July 23rd 2005

New Links In The Sidebar posted @ 9:21 am Edit This in [Site News ]

We have added a list of related links in the right most sidebar. Do check them out! In elit felis, faucibus nec, consectetuer eleifend, molestie a, erat. Nullam fermentum, lorem quis molestie congue, turpis erat sodales lorem, quis luctus dolor mi sit amet sem. Morbi eget ante. Aenean nulla. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nunc in sem. Etiam feugiat, augue non vehicula semper, purus lacus bibendum metus, tempor ornare tortor diam eu libero. In quis sapien et urna interdum mattis. Duis gravida, quam id blandit semper, wisi wisi feugiat sapien, et consectetuer tortor nibh sit amet erat. Proin ñeque. Sed augue quam, tristique vitae, fermentum at, feugiat non, mi. Sed molestie iaculis justo. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Nam tempor dapibus velit. Pellentesque at ante id odio lobortis ornare. Phasellus mollis sagittis nulla.

Comments (1)

Thursday, July 21st 2005

Public Broadcasting Metadata Dictionary Project rtricfaH /ffi ^-flO nm Friit" Thic in T Infnrmatir\n

Pages

About This Site Articles Maximising Comments Multiple Authors

Blogroll

Michel

Mike

Alex

Dougal

Ryan

Matt

Carthik

Donncha

Archives

July 2005 June 2005

Categories

Uncategorized Hints and Tips Site News

Information Architecture Search

3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 «Jul

Del.icio.us Links bbPress » Home WordPress Plugins Database

MostWanted - a Popular Posts Plugin for WordPress Photon [ daikini software ] Living on an Island » Wordpress Theme - 3 Column Relaxation Weblog Tools Collection » Backup Plugin for

Figure 16-12. The improved list of links

Was this article helpful?

0 0

Post a comment