Support » Fixing WordPress » How to edit Widget Meta sidebar links in WordPress 2.1?

  • How do I edit the Widget Meta sidebar links in WordPress 2.1?

    I am using WordPress 2.1, Tarski 1.2.2, and Widgets to display Meta in the sidebar.

    Currently the sidebard Meta links are

    * Site Admin
    * Logout
    * Entries RSS
    * Comments RSS

    I would like only the Site Admin and Logout links. (There is already a link in the footer.)

    I’ve looked through many .php files in many directories but haven’t found the source of Meta links. Are they accessbile and editable somewhere?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi there

    I have the same question – but din’t got any answer yet. I tried to edit the file widget.php but this didn’t work.

    I found it! The author of the theme put some widget functions into the file functions.php in the themes folder. So I made the changes in this file – and it works!


    I switched themes and haven’t found the source of the Meta links in this new one “Dream On” by WPDesigner, so I am still stumped.

    The mix of and links is discombobulating.

    swimswimswim: I was having the same problem too. Go into your plugins folder and widgets directory to the widgets.php file and do a search for and you’ll find it. You’ll see it right under the RSS meta data links.

    Moderator Samuel Wood (Otto)

    (@otto42) Admin

    Instead of editing the meta widgets to do what you like, I suggest getting a new widget for the job from, or using a text widget to hold your links. Modifying the code directly like that means that you’ll have to remodify it when you upgrade the plugin (and all plugins eventually need upgrading).

    Thanks Otto42!

    Now here’s how I did it in detail for dummies like me…

    I have K2 (, a widget compliant theme.
    I have installed the plugin Sidebar Widgets (
    I also installed Executable PHP widget (

    At “Admin>>Presentation>>Sidebar Widgets” I scrolled down and added a “PHP Code Widget”. I drug this new button thingy (I guess a widget?) to the sidebar. Clicked the menu bar on the right end of that widget, and in the code box entered my meta code.

    [<] ul [>]
            <?php wp_register(); ?>
    <li><?php wp_loginout(); ?></li>
    <li><a href="">">Site Map</a></li>
    <li><a>" title="<?php _e('Syndicate this site using RSS 2.0'); ?>"><?php _e('Entries RSS'); ?></a></li>
    <li><a>" title="<?php _e('The latest comments to all posts in RSS'); ?>"><?php _e('Comments RSS'); ?></a></li>
    <li><a href="">">WordPress</a></li>
            <?php wp_meta(); ?>
    [<] /ul [>]

    This code (remove the “[]” around the “<>’s” of the “ul” and “/ul” tags) I stole from my K2 theme in the [k2 root]/app/moddules/meta.php.


    kfordham281, Thanks for the suggestion. Editing widgets.php did the trick.

    Just wanted to say, thanks to all of you and especially tin68. I am using the WP-Multiflex-3 theme, and the correct code to edit was in the theme’s functions.php file.

    I have a section of pages on my site that is “documentation” for authors and administrative users, but not for subscribers (I’m referring to “User Roles and Capabilities”). I searched in the theme’s functions.php file for the “Meta” section and found it; at about line 133 I added the code:

        (if current_user_can('level_4') ) {
    <li><a href="/documentation">Documentation</a></li>

    It seems to be working fine so far.

    Slowly, slowly I’m improving my WordPress enhancing skills here, and learning about the ability of the theme functions .php file was a great new find! Thanks again.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How to edit Widget Meta sidebar links in WordPress 2.1?’ is closed to new replies.