删除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中标识下添加:
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' => '',