Stay Hungry, Stay Foolish

去除wordpress功能下面的文章 RSS、评论 RSS、WordPress.org

用记事本打开\wp-includes\widgets\class-wp-widget-meta.php

1、删除功能下面的WordPress.org

找到如下文本:

/**
* Filters the "Powered by WordPress" text in the Meta widget.
*
* @since 3.6.0
*
* @param string $title_text Default title text for the WordPress.org link.
*/
echo apply_filters( 'widget_meta_poweredby', sprintf( '<li><a href="%s" title="%s">%s</a></li>',
esc_url( __( 'https://wordpress.org/' ) ),
esc_attr__( 'Powered by WordPress, state-of-the-art semantic personal publishing platform.' ),
_x( 'WordPress.org', 'meta widget link text' )
) );

修改为(或直接删除):

/**
* Filters the "Powered by WordPress" text in the Meta widget.
*
* @since 3.6.0
*
* @param string $title_text Default title text for the WordPress.org link.
echo apply_filters( 'widget_meta_poweredby', sprintf( '<li><a href="%s" title="%s">%s</a></li>',
esc_url( __( 'https://wordpress.org/' ) ),
esc_attr__( 'Powered by WordPress, state-of-the-art semantic personal publishing platform.' ),
_x( 'WordPress.org', 'meta widget link text' )
) );
*/

功能下面的 WordPress.org 就可以去掉了。

2、删除功能下面的 文章 RSS

直接注释或删除下面的代码就可以了

<li>
    <a href="<?php echo esc_url( get_bloginfo( 'rss2_url' ) ); ?>">
        <?php _e('Entries <abbr title="Really Simple Syndication">RSS</abbr>'); ?>
    </a>
</li>

3、删除功能下面的 评论 RSS

直接注释或删除下面的代码就可以了

<li>
    <a href="<?php echo esc_url( get_bloginfo( 'comments_rss2_url' ) ); ?>">
        <?php _e('Comments <abbr title="Really Simple Syndication">RSS</abbr>'); ?>
    </a>
</li>
喜欢 (3)
取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,你说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦


Warning: Use of undefined constant PRC - assumed 'PRC' (this will throw an Error in a future version of PHP) in C:\inetpub\wordpress\wp-content\themes\XHBlog\comments.php on line 17
发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址