删除Link Header

编辑文件wp-includes/rest-api.php找到如下内容,进行删除即可。

 864         header( 'Link: <' . esc_url_raw( $api_root ) . '>; rel="https://api.w.org/"', false );
自动更新服务ping

后台->撰写->更新服务

在您发表新文章时,WordPress会自动通知站点更新服务。要获取更多资讯,请参见Codex上的更新服务。用换行分隔多个服务URL。

http://rpc.pingomatic.com
http://rpc.twingly.com
http://api.feedster.com/ping
http://api.moreover.com/RPC2
http://api.moreover.com/ping
http://www.blogdigger.com/RPC2
http://www.blogshares.com/rpc.php
http://www.blogsnow.com/ping
http://www.blogstreet.com/xrbin/xmlrpc.cgi
http://bulkfeeds.net/rpc
http://www.newsisfree.com/xmlrpctest.php
http://ping.blo.gs/
http://ping.feedburner.com
http://ping.syndic8.com/xmlrpc.php
http://ping.weblogalot.com/rpc.php
http://rpc.blogrolling.com/pinger/
http://rpc.technorati.com/rpc/ping
http://rpc.weblogs.com/RPC2
http://www.feedsubmitter.com
http://blo.gs/ping.php
http://www.pingerati.net
http://www.pingmyblog.com
http://geourl.org/ping
http://www.weblogalot.com/ping
http://blogsearch.google.com/ping/RPC2
http://services.newsgator.com/ngws/xmlrpcping.aspx
http://api.my.yahoo.com/RPC2
http://api.my.yahoo.com/rss/ping
http://ping.baidu.com/ping/RPC2
http://blog.youdao.com/ping/RPC2
http://www.feedsky.com/api/RPC2
http://blog.iask.com/RPC2
http://www.zhuaxia.com/rpc/server.php
http://www.xianguo.com/xmlrpc/ping.php
http://ping.blog.qikoo.com/rpc2.php
http://bing.com/webmaster/ping.aspx
替换google字体

在wordpress家目录执行如下命令:

sed -i 's#fonts.googleapis.com/css#www.ym68.cc/wp-includes/css/google_fonts.css#g' $(grep -Ilr 'fonts.googleapis.com/css')
所有链接新窗口打开

在主题目录下header.php中<head>标识下添加:

        <base target=”_blank”>
hestia
删除author
[root@VM_0_9_centos themes]# sed -i 's/\(.*href="\).*\(" t.*author-name fn.*\)/\1\/\2/' hestia/inc/views/blog/class-hestia-blog-post-layout.php
美化侧边栏

文件地址:/wp-content/themes/hestia/inc/core/class-hestia-public.php

349                                 'before_widget' => '<div class="card"><div id="%1$s" class="content widget %2$s">',
350                                 'after_widget'  => '</div></div>',

该文章采用「CC 协议」,转载必须注明作者和本文链接.
分类: LinuxPHP