WordPress.org

Ready to get started?Download WordPress

Forums

How to edit Widget Meta sidebar links in WordPress 2.1? (9 posts)

  1. swimswimswim
    Member
    Posted 7 years ago #

    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
    * WordPress.com

    I would like only the Site Admin and Logout links. (There is already a wordpress.org 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?

  2. tin68
    Member
    Posted 7 years ago #

    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.

  3. tin68
    Member
    Posted 7 years ago #

    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!

  4. swimswimswim
    Member
    Posted 7 years ago #

    Congratulations!

    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 wordpress.com and wordpress.org links is discombobulating.

  5. kfordham281
    Member
    Posted 7 years ago #

    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 wordpress.com and you'll find it. You'll see it right under the RSS meta data links.

  6. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    Instead of editing the meta widgets to do what you like, I suggest getting a new widget for the job from http://widgets.wordpress.com, 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).

  7. kayaker
    Member
    Posted 7 years ago #

    Thanks Otto42!

    Now here's how I did it in detail for dummies like me...

    I have K2 (http://getk2.com/), a widget compliant theme.
    I have installed the plugin Sidebar Widgets (http://svn.wp-plugins.org/widgets/trunk).
    I also installed Executable PHP widget (http://ottodestruct.com).

    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="http://www.mailinglisthowto.com/sitemap/">">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="http://wordpress.org/">">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.

    Voila!

  8. swimswimswim
    Member
    Posted 7 years ago #

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

  9. scormeny
    Member
    Posted 6 years ago #

    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:

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

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic