今天突然发现网站站点地图报错,提示如下问题:This page contains the following errors:
error on line 1 at column 7: XML declaration allowed only at the start of the document
Below is a rendering of the page up to the first error.
我使用的是自带的站点地图,后台是找不到xml文件,查了一下一堆说是什么编码不对啥的弄完发现还是不行,下面说解决办法。

解决办法
后台找到function.php文件将<?php前方的的空格去掉即可解决。如图:

刷新网页可以看到已经可以使用了

© 版权声明
THE END



















暂无评论内容