View Full Version : Making the "Links" sidebar list title go away...
samwoodfin
03-20-2008, 09:20 AM
How?
I've managed to do it with a page list, using <?php wp_list_pages('title_li=0'); ?> but <?php wp_list_bookmarks('title_li=0'); ?> leaves me with the word "Links", in h2 tags, and I can't figure out how to get rid of it.
*frustrated smiley*
samwoodfin
03-20-2008, 09:58 AM
Nevermind. Once I figured out where "Links" was coming from, I figured out why it didn't work the same way, changed the text, and moved the list. It's all good.
SarahG
03-20-2008, 11:13 AM
Just for future reference both template tags should have ('title_li=') to have no header appear.
samwoodfin
03-20-2008, 05:25 PM
Just for future reference both template tags should have ('title_li=') to have no header appear.
That didn't work with wp_list_bookmarks, either. But I appreciate the reference, and will go re-do the wp_list_pages bit.
SarahG
03-20-2008, 06:09 PM
What version of WP are you running? That's the standard -
title_li
(string) Text for the heading of the links list. Defaults to '__('Bookmarks')', which displays "Bookmarks" (the __('') is used for localization purposes). Only used with categorize set to 0 (else the category names will be used instead). If passed a null (0) value, no heading is displayed, and the list will not be wrapped with <ul>, </ul> tags.
Template Tags/wp list bookmarks WordPress Codex (http://codex.wordpress.org/Template_Tags/wp_list_bookmarks)
samwoodfin
03-20-2008, 06:52 PM
What version of WP are you running? That's the standard -
Template Tags/wp list bookmarks WordPress Codex (http://codex.wordpress.org/Template_Tags/wp_list_bookmarks)
2.3.2, I think. I tried all sorts of things, for hours, last night, before I asked here. I finally figured out that it was pulling the word "Links" from the bookmarks manager, so I at least got the heading to change, but I couldn't make it disappear. I tried the putting in the default, to see if I could get it to say "Bookmarks". I tried with the "0", without the "0", taking everything out of arguments, putting the "0" in parantheses and single quotes, and all sorts of other things, just in case I wasn't understanding how the arguments were supposed to be formed.
After I read your last reply, I went back and changed both lists to 'title_li='. The pages menu still has no header, but the links list doesn't seem to recognize the argument.
At this point, I'm liking the new heading, anyway, but I'm still curious about why it's not working.
heetertc
05-20-2008, 08:27 PM
This works:
<?php wp_list_bookmarks('title_li=&categorize=0'); ?>
It's a little hidden on the wordpress codex, but here's the link:
codex.wordpress.org/Template_Tags/wp_list_bookmarks (http://codex.wordpress.org/Template_Tags/wp_list_bookmarks)
heetertc
05-20-2008, 08:28 PM
<?php wp_list_bookmarks('title_li=&categorize=0'); ?>
samwoodfin
05-20-2008, 11:15 PM
Thanks, heetertc. :)
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.