DiggingIntoWordPress

by Chris Coyier & Jeff Starr

Remove Title from Blogroll

Posted by on

Typically when you use one of WordPress functions to output a list of “stuff” from WordPress, you can pass a parameter to eliminate the “title” that WordPress likes to put in there by default. For example, with wp_list_categories you pass along “title_li=” with nothing after the equals sign to remove the title that normally accompanies the output. With the function to output links (e.g. blogroll), you use the function wp_list_bookmarks, but unfortunately using that same parameter the same way is ineffective at removing the title.

Quick Fix

Pass the categorize parameter (blank) in addition to the title_li parameter (blank) and you’ll be set!

<?php wp_list_bookmarks("categorize=&title_li="); ?>

5 Responses

  1. Jaap van der Heijden December 3, 2009

    Thanx, this works good. Just what I was looking for.

  2. Exactly what I was looking for for http://jamesspratt.org but stil working on the full refit.

    Thanks

  3. This sounds like exactly what I want to do … remove the word “Blogroll” that is inserted above my links … however I need instructions more suited to a rank amateur.

    “Pass the categorize parameter (blank) in addition to the title_li parameter (blank) and you’ll be set!”

    I have no idea what that means. Could you give more explanation, such as where “” should be placed? (As you can see, I *can* copy and paste!)

    Thanks so much.

  4. Well, found an easier solution. I just put an empty Text widget where the word “Blogroll” was showing up and it’s gone.

  5. Judy, should you come back to this, “Pass the categorize parameter (blank) in addition to the title_li parameter (blank)” means not indicating anything after the = symbol in the code below:

    <?php wp_list_bookmarks("categorize=&title_li="); ?>

    All that appears there is the closing "

Comments are closed. Contact us with any critical information. Thank you!

Code is poetry