使用WordPress的小伙伴如果在边栏添加了RSS功能这一项,你会发现有“文章RSS”、“评论RSS”、“WordPress.org”,这几项。但是我不想要它!我只想保留“管理站点”和“注销”。下面给出一种非常简单地方式,不需要Linux操作,面向所有人(包括白的不能再白的人,大佬请自动忽视)。
- 我们需要一个FTP文件传输工具(我这里用的FileZilla Pro,有需要的小伙伴可以联系我,我发给你)
- 接下来我们需要我们服务器的ip地址,用户名和密码,端口我是linux默认22端口。具体的端口设置会在下面附上链接,自行学习。
![](https://99couple.top/wp-content/uploads/2020/03/image-1024x41.png)
- 需要注意的就是这里主机的协议是sftp://的,有啥区别看下面。
![](https://99couple.top/wp-content/uploads/2020/03/image-1.png)
- 连接成功后我们在地址栏填入我们需要的路径,也可以点击文件夹操作,(..是返回上一层)。
- 路径是(/www/wwwroot/99couple.top/wp-includes/widgets/class-wp-widget-meta.php),你别直接复制粘贴好吧,就比如99couple.top是我的网站文件夹,你得改成你自己的,后面的都一样。
![](https://99couple.top/wp-content/uploads/2020/03/image-2.png)
- 拖出来,用记事本打开它,这里更改大概60行左右。(我是用vscode打开的)
![](https://99couple.top/wp-content/uploads/2020/03/image-3-1024x428.png)
- 我们需要做的就是注释掉这两段代码,按着我箭头标的照打就行。
<!--屏蔽RSS
<li><a href="<?php echo esc_url( get_bloginfo( 'rss2_url' ) ); ?>"><?php _e( 'Entries <abbr title="Really Simple Syndication">RSS</abbr>' ); ?></a></li>
<li><a href="<?php echo esc_url( get_bloginfo( 'comments_rss2_url' ) ); ?>"><?php _e( 'Comments <abbr title="Really Simple Syndication">RSS</abbr>' ); ?></a></li>
-->
<?php
/**
* Filters the "Powered by WordPress" text in the Meta widget.
*
* @since 3.6.0
* @since 4.9.0 Added the `$instance` parameter.
*
* @param string $title_text Default title text for the WordPress.org link.
* @param array $instance Array of settings for the current widget.
*/
/**
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' )
),
$instance
);*/
- 也可以直接复制粘贴上面的
- 我们再把这个文件拖回刚才拖出来的地方,会提示我们覆盖同名文件,选是,结束。
![](https://99couple.top/wp-content/uploads/2020/03/image-4.png)
- 改完了就成了上面这样,没有那些没有用的东西了。
此文更新于2020-3-30日,如果对您有帮助记得关注一下我的公众号哈~
使用WordPress的小伙伴如果在边栏添加了RSS功能这一项,你会发现有“文章RSS”、“评论RSS”、“WordPress.org”,这几项。但是我不想要它!我只想保留“管理站点”和“注销”。下面给出一种非常简单地方式,不需要Linux操作,面向所有人(包括白的不能再白的人,大佬请自动忽视)。
- 我们需要一个FTP文件传输工具(我这里用的FileZilla Pro,有需要的小伙伴可以联系我,我发给你)
- 接下来我们需要我们服务器的ip地址,用户名和密码,端口我是linux默认22端口。具体的端口设置会在下面附上链接,自行学习。
![](https://99couple.top/wp-content/uploads/2020/03/image-1024x41.png)
- 需要注意的就是这里主机的协议是sftp://的,有啥区别看下面。
![](https://99couple.top/wp-content/uploads/2020/03/image-1.png)
- 连接成功后我们在地址栏填入我们需要的路径,也可以点击文件夹操作,(..是返回上一层)。
- 路径是(/www/wwwroot/99couple.top/wp-includes/widgets/class-wp-widget-meta.php),你别直接复制粘贴好吧,就比如99couple.top是我的网站文件夹,你得改成你自己的,后面的都一样。
![](https://99couple.top/wp-content/uploads/2020/03/image-2.png)
- 拖出来,用记事本打开它,这里更改大概60行左右。(我是用vscode打开的)
![](https://99couple.top/wp-content/uploads/2020/03/image-3-1024x428.png)
- 我们需要做的就是注释掉这两段代码,按着我箭头标的照打就行。
<!--屏蔽RSS
<li><a href="<?php echo esc_url( get_bloginfo( 'rss2_url' ) ); ?>"><?php _e( 'Entries <abbr title="Really Simple Syndication">RSS</abbr>' ); ?></a></li>
<li><a href="<?php echo esc_url( get_bloginfo( 'comments_rss2_url' ) ); ?>"><?php _e( 'Comments <abbr title="Really Simple Syndication">RSS</abbr>' ); ?></a></li>
-->
<?php
/**
* Filters the "Powered by WordPress" text in the Meta widget.
*
* @since 3.6.0
* @since 4.9.0 Added the `$instance` parameter.
*
* @param string $title_text Default title text for the WordPress.org link.
* @param array $instance Array of settings for the current widget.
*/
/**
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' )
),
$instance
);*/
- 也可以直接复制粘贴上面的
- 我们再把这个文件拖回刚才拖出来的地方,会提示我们覆盖同名文件,选是,结束。
![](https://99couple.top/wp-content/uploads/2020/03/image-4.png)
- 改完了就成了上面这样,没有那些没有用的东西了。
此文更新于2020-3-30日,如果对您有帮助记得关注一下我的公众号哈~
使用WordPress的小伙伴如果在边栏添加了RSS功能这一项,你会发现有“文章RSS”、“评论RSS”、“WordPress.org”,这几项。但是我不想要它!我只想保留“管理站点”和“注销”。下面给出一种非常简单地方式,不需要Linux操作,面向所有人(包括白的不能再白的人,大佬请自动忽视)。
- 我们需要一个FTP文件传输工具(我这里用的FileZilla Pro,有需要的小伙伴可以联系我,我发给你)
- 接下来我们需要我们服务器的ip地址,用户名和密码,端口我是linux默认22端口。具体的端口设置会在下面附上链接,自行学习。
![](https://99couple.top/wp-content/uploads/2020/03/image-1024x41.png)
- 需要注意的就是这里主机的协议是sftp://的,有啥区别看下面。
![](https://99couple.top/wp-content/uploads/2020/03/image-1.png)
- 连接成功后我们在地址栏填入我们需要的路径,也可以点击文件夹操作,(..是返回上一层)。
- 路径是(/www/wwwroot/99couple.top/wp-includes/widgets/class-wp-widget-meta.php),你别直接复制粘贴好吧,就比如99couple.top是我的网站文件夹,你得改成你自己的,后面的都一样。
![](https://99couple.top/wp-content/uploads/2020/03/image-2.png)
- 拖出来,用记事本打开它,这里更改大概60行左右。(我是用vscode打开的)
![](https://99couple.top/wp-content/uploads/2020/03/image-3-1024x428.png)
- 我们需要做的就是注释掉这两段代码,按着我箭头标的照打就行。
<!--屏蔽RSS
<li><a href="<?php echo esc_url( get_bloginfo( 'rss2_url' ) ); ?>"><?php _e( 'Entries <abbr title="Really Simple Syndication">RSS</abbr>' ); ?></a></li>
<li><a href="<?php echo esc_url( get_bloginfo( 'comments_rss2_url' ) ); ?>"><?php _e( 'Comments <abbr title="Really Simple Syndication">RSS</abbr>' ); ?></a></li>
-->
<?php
/**
* Filters the "Powered by WordPress" text in the Meta widget.
*
* @since 3.6.0
* @since 4.9.0 Added the `$instance` parameter.
*
* @param string $title_text Default title text for the WordPress.org link.
* @param array $instance Array of settings for the current widget.
*/
/**
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' )
),
$instance
);*/
- 也可以直接复制粘贴上面的
- 我们再把这个文件拖回刚才拖出来的地方,会提示我们覆盖同名文件,选是,结束。
![](https://99couple.top/wp-content/uploads/2020/03/image-4.png)
- 改完了就成了上面这样,没有那些没有用的东西了。
此文更新于2020-3-30日,如果对您有帮助记得关注一下我的公众号哈~
使用WordPress的小伙伴如果在边栏添加了RSS功能这一项,你会发现有“文章RSS”、“评论RSS”、“WordPress.org”,这几项。但是我不想要它!我只想保留“管理站点”和“注销”。下面给出一种非常简单地方式,不需要Linux操作,面向所有人(包括白的不能再白的人,大佬请自动忽视)。
- 我们需要一个FTP文件传输工具(我这里用的FileZilla Pro,有需要的小伙伴可以联系我,我发给你)
- 接下来我们需要我们服务器的ip地址,用户名和密码,端口我是linux默认22端口。具体的端口设置会在下面附上链接,自行学习。
![](https://99couple.top/wp-content/uploads/2020/03/image-1024x41.png)
- 需要注意的就是这里主机的协议是sftp://的,有啥区别看下面。
![](https://99couple.top/wp-content/uploads/2020/03/image-1.png)
- 连接成功后我们在地址栏填入我们需要的路径,也可以点击文件夹操作,(..是返回上一层)。
- 路径是(/www/wwwroot/99couple.top/wp-includes/widgets/class-wp-widget-meta.php),你别直接复制粘贴好吧,就比如99couple.top是我的网站文件夹,你得改成你自己的,后面的都一样。
![](https://99couple.top/wp-content/uploads/2020/03/image-2.png)
- 拖出来,用记事本打开它,这里更改大概60行左右。(我是用vscode打开的)
![](https://99couple.top/wp-content/uploads/2020/03/image-3-1024x428.png)
- 我们需要做的就是注释掉这两段代码,按着我箭头标的照打就行。
<!--屏蔽RSS
<li><a href="<?php echo esc_url( get_bloginfo( 'rss2_url' ) ); ?>"><?php _e( 'Entries <abbr title="Really Simple Syndication">RSS</abbr>' ); ?></a></li>
<li><a href="<?php echo esc_url( get_bloginfo( 'comments_rss2_url' ) ); ?>"><?php _e( 'Comments <abbr title="Really Simple Syndication">RSS</abbr>' ); ?></a></li>
-->
<?php
/**
* Filters the "Powered by WordPress" text in the Meta widget.
*
* @since 3.6.0
* @since 4.9.0 Added the `$instance` parameter.
*
* @param string $title_text Default title text for the WordPress.org link.
* @param array $instance Array of settings for the current widget.
*/
/**
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' )
),
$instance
);*/
- 也可以直接复制粘贴上面的
- 我们再把这个文件拖回刚才拖出来的地方,会提示我们覆盖同名文件,选是,结束。
![](https://99couple.top/wp-content/uploads/2020/03/image-4.png)
- 改完了就成了上面这样,没有那些没有用的东西了。
此文更新于2020-3-30日,如果对您有帮助记得关注一下我的公众号哈~