• 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

Viewing 8 replies - 1 through 8 (of 8 total)
  • 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.

    Thread Starter rward

    (@rward)

    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?

    Thread Starter rward

    (@rward)

    I may also not be fully understanding what you said ??

    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.

    Thread Starter rward

    (@rward)

    Got it! Thank for your help…

    Thread Starter rward

    (@rward)

    This code worked:

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

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

    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: https://codex.www.ads-software.com/Function_Reference/wp_list_bookmarks

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Blogroll – How to Get it to Not Say That?’ is closed to new replies.