WordPress.org

Ready to get started?Download WordPress

Forums

Blogroll - How to Get it to Not Say That? (9 posts)

  1. rward
    Member
    Posted 2 years ago #

    Hi,

    I've installed the following code in my sidebar and I don't want it to say "Blogroll":

    <?php get_links_list(); ?>

    Which WP file do I need to edit to remove this? I've tried to find an answer using Google to no avail...

    Thank you for your time,

    Ryan

  2. dkotter
    Member
    Posted 2 years ago #

    That function
    <?php get_links_list(); ?>
    has been deprecated, so you're better of not using it.

    It has been replaced with
    <?php wp_list_bookmarks( $args ); ?>

    You can view more information about this function here. There are options to set what you want the title to be in the actual function, so you won't need to edit any file.

  3. rward
    Member
    Posted 2 years ago #

    Thank you - I've changed the code, but it still says "Blogroll" and I would like that to disappear.

    Using the link you provided I find that the file I need to edit is located in: wp-includes/bookmark-template.php. From within that file, I see nothing that allows me to remove the word Blogroll....

    Any other suggestions?

  4. rward
    Member
    Posted 2 years ago #

    I may also not be fully understanding what you said :)

  5. dkotter
    Member
    Posted 2 years ago #

    You just need to pass in the right argument to change the title, so something like this:

    <?php wp_list_bookmarks('title_li=__('CHANGE THIS TO WHAT YOU WANT')'); ?>

    Whatever you set the title as is what will show. You don't want to change anything in the wp-includes folder, as any changes you make will be overwritten when an update is released.

    If the above doesn't work, then the Blogroll title is coming from somewhere else. The code you've been trying, are you inserting it in the sidebar.php file or somewhere else? I'd say it's the Blogroll title is probably hard coded in your sidebar.php file if it keeps showing up even after the above changes.

  6. rward
    Member
    Posted 2 years ago #

    Got it! Thank for your help...

  7. rward
    Member
    Posted 2 years ago #

    This code worked:

    <?php wp_list_bookmarks('categorize=0&title_before=&title_after=&title_li='); ?>

  8. dkotter
    Member
    Posted 2 years ago #

    Good. Glad to hear. Let me know if you need any other help

  9. oliverchank
    Member
    Posted 2 years ago #

    In case anyone else stumbles upon this,

    This has syntax errors:
    <?php wp_list_bookmarks('title_li=__('CHANGE THIS TO WHAT YOU WANT')'); ?>

    A valid syntax would be:
    <?php wp_list_bookmarks('title_li='.__('CHANGE THIS TO WHAT YOU WANT')); ?>

    Either way, both of the above won't change the title_li because it needs the categorize=0 in order to take effect.

    Reference: http://codex.wordpress.org/Function_Reference/wp_list_bookmarks

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags