How to remove default META Links in WordPress 2.8

One of those things that you would want to do in WordPress is to edit the default META widget so as to remove the default links “Valid XHTML”, “XFN”, “Entries RSS”, “Comments RSS” as in technical blogs these may be looked at irrelevant content. I’ve always struggled with this and have to open and look for it in multiple files and so did I with WordPress 2.8 and finally found a way around it.

In WordPress 2.8, the default widgets are configured in the file

/<wordpress root>/wp-includes/default-widgets.php

In this file look for the part of the code thats as follows:

<ul>
<?php wp_register(); ?>
<li><?php wp_loginout(); ?></li>
<li><a href=”<?php bloginfo(’rss2_url’); ?>” title=”<?php echo attribute_escape(__(’Syndicate this site using RSS 2.0?)); ?>”><?php _e(’Entries <abbr title=”Really Simple Syndication”>RSS</abbr>’); ?></a></li>
<li><a href=”<?php bloginfo(’comments_rss2_url’); ?>” title=”<?php echo attribute_escape(__(’The latest comments to all posts in RSS’)); ?>”><?php _e(’Comments <abbr title=”Really Simple Syndication”>RSS</abbr>’); ?></a></li>
<li><a href=”
http://wordpress.org/” title=”<?php echo attribute_escape(__(’Powered by WordPress, state-of-the-art semantic personal publishing platform.’)); ?>”>WordPress.org</a></li>
<?php wp_meta(); ?>
</ul>

This is the one that adds the default META widget with its links. Remove the <li>…</li> lines which has the links. For instance, to remove the “Comments RSS” link from the META, remove this line

<li><a href=”<?php bloginfo(’comments_rss2_url’); ?>” title=”<?php echo attribute_escape(__(’The latest comments to all posts in RSS’)); ?>”><?php _e(’Comments <abbr title=”Really Simple Syndication”>RSS</abbr>’); ?></a></li>

If you want to remove everything except the “Register” & “login/Logout” button then remove the following:

<li><a href=”<?php bloginfo(’rss2_url’); ?>” title=”<?php echo attribute_escape(__(’Syndicate this site using RSS 2.0?)); ?>”><?php _e(’Entries <abbr title=”Really Simple Syndication”>RSS</abbr>’); ?></a></li>
<li><a href=”<?php bloginfo(’comments_rss2_url’); ?>” title=”<?php echo attribute_escape(__(’The latest comments to all posts in RSS’)); ?>”><?php _e(’Comments <abbr title=”Really Simple Syndication”>RSS</abbr>’); ?></a></li>
<li><a href=”
http://wordpress.org/” title=”<?php echo attribute_escape(__(’Powered by WordPress, state-of-the-art semantic personal publishing platform.’)); ?>”>WordPress.org</a></li>

However, some of the themes control this from their sidebar.php files in which case you need for the above set of code in the sidebar.php, l_sidebar.php,r_sidebar.php etc in the particular theme folder.

  • Share/Bookmark

Random Posts

  • How to install Google chrome in Ubuntu 9.10/9.04/8.10
  • Fix for “Cannot load adsense-deluxe.php” Error with AdSense-Deluxe Plugin in Wordpress
  • Ravatars – Generate and assign icons to the visitors leaving comments
  • Wordpress Requirements
  • Is Chrome OS just another Ubuntu fork?

Comments

9 Responses to “How to remove default META Links in WordPress 2.8”
  1. mayka says:

    Cant find none in widgets.php, 2.8 version

  2. admin says:

    @look for default-widgets.php file in this you should find

  3. Kjersti says:

    This is just what I´ve been looking for – however I don´t have no default-widgets.php, I have the 2.8.4 version. I want to remove the Rss-info in Smoky theme.

  4. Hi,

    Thank You, Instructions are dead on!

    Have a Great Day!

  5. Marc Henessy says:

    i installed Chrome OS on two of my netbooks. the Chrome OS works great and its loading time is very fast too.

  6. guest says:

    good :-) thank a lot

  7. Daniel says:

    Great! Thanks a lot man, been around on 15 different pages trying to find the solution but none of them worked but this did. Cheers!

  8. i have tested chrome os both at home and at work, it does not seem to be better than ubuntu-’-

Speak Your Mind

Tell us what you're thinking...