wordpress 小工具 中 功能 的修改

wordpress 中有一个默认叫 功能 的小工具,提供登陆等功能,其中一些连接可能不想要,删除方法如下

wordpress的小工具很强大,通过内建和插件提供的小工具栏目,可以自定义非常强大的侧边栏功能。 其中功能小工具提供注册、登录、管理站点等链接,不过对于评论rss以及wordpress官网的链接,可能很多用户都不想要。 我们可以通过以下方法删除不需要的功能链接: 用dreamweaver打开”\wp-includes\default-widgets.php文件,找到以下代码:

<ul>
<?php wp_register(); ?>
<li><?php wp_loginout(); ?></li>
<li><a href=”<?php bloginfo(‘rss2_url’); ?>” title=”<?php echo esc_attr(__(‘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 esc_attr(__(‘The latest comments to all posts in RSS’)); ?>”><?php _e(‘Comments <abbr title=”Really Simple Syndication”>RSS</abbr>’); ?></a></li>
<li><a href=”<?php esc_attr_e( ‘http://wordpress.org/’ ); ?>” title=”<?php echo esc_attr(__(‘Powered by WordPress, state-of-the-art semantic personal publishing platform.’)); ?>”><?php
/* translators: meta widget link text */
_e( ‘WordPress.org’ );
?></a></li>
<?php wp_meta(); ?>
</ul>

每个li标签对应一个功能链接,根据你的需要删除不需要的项目。

文章来源:http://www.web589.com/posts/1784.html

作者: 二皮

Hackers please go away