Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Sidebars & Widgets (http://forum.bytesforall.com/forumdisplay.php?f=14)
-   -   [SOLVED] How to remove Entries RSS, Comments RSS, and Wordpress.org on sidebar (http://forum.bytesforall.com/showthread.php?t=2117)

streetx Jun 20, 2009 07:42 AM

[SOLVED] How to remove Entries RSS, Comments RSS, and Wordpress.org on sidebar
1 Attachment(s)
I would like to have Meta on sidebar, but I just needed the Login, Logout and Register instead of Entries RSS, Comments RSS, and Wordpress.org.
Attachment 166
I had go through http://forum.bytesforall.com/showthr...ents%26quot%3B, but I still don't understand how to remove. Anyone can explain to me. Thank you.

shedhed Jun 20, 2009 10:08 AM

You will need to modify a Wordpress file for this.

It's wp-includes/widgets.php


 * Display meta widget.
 * Displays log in/out, RSS feed links, etc.
 * @since 2.2.0
 * @param array $args Widget arguments.
function wp_widget_meta($args) {
        $options = get_option('widget_meta');
        $title = empty($options['title']) ? __('Meta') : apply_filters('widget_title', $options['title']);
                <?php echo $before_widget; ?>
                        <?php echo $before_title . $title . $after_title; ?>
                        <?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(); ?>
                <?php echo $after_widget; ?>

Find the above bit (starts at line 839 on mine) and then delete those links you don't want from the opening <li>........to the closing</li> of that link.

I would save a copy of your original with another name just in case. Remember that upgrading Wordpress will overwrite these changes.

Or you do as Flynn suggested and remove the Meta widget completely and put the Login in the footer. Alternatively there are Wordpress plugins that substitute the meta widget e.g.:-




I haven't tried any of these - check them out first.

Hope this helps.


streetx Jun 20, 2009 09:32 PM

Thanks shedhed, I able to disable that three link by using MiniMeta Widget. I prefer MiniMeta Widget. :p

Before install the plugin, I had go through the wordpress\wp-includes\widgets.php but I not able to get function wp_widget_meta($args) in the code. :confused:

Is it because new version of WORDPRESS?:confused:

Wordpress, 2.8
Theme, Atahualpa 3.2

Thank you.

shedhed Jun 21, 2009 12:54 PM

Yup, it's changed in WP 2.8. I've just done a search on my files in 2.8 and the meta stuff is now located in default-widgets.php in wp-includes at line 273.

Apologies for sending you in the wrong direction.


streetx Jun 21, 2009 06:49 PM

Hey friend don't said that, you had helped me a lot. Thank you ;)

I being tracking for the file for few days but resulting failed. XD

All times are GMT -6. The time now is 04:19 PM.

Powered by vBulletin® Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.