搜索
查看: 986|回复: 0
打印 上一主题 下一主题

Google XML Sitemaps 把地图多余的页头页脚去除办法

[复制链接]
跳转到指定楼层
楼主
发表于 2018-11-22 15:12:13 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
Google XML Sitemaps 是wordpress的一个地图插件,由于看到页头和页脚有些链接,为了简化一下地图,精简了部分代码。

首先找到地图sitemap.xml文件

路径:/wp-content/plugins/google-sitemap-generator/sitemap.xsl

找到代码删除:
  1.      Generated with <a rel="external nofollow" href="http://www.arnebrachhold.de/redir/sitemap-home/" title="Google (XML) Sitemap Generator Plugin for WordPress">Google (XML) Sitemaps Generator Plugin for WordPress</a> by <a rel="external nofollow" href="http://www.arnebrachhold.de/">Arne Brachhold</a>. This XSLT template is released under the GPL and free to use.<br />
  2.                                         If you have problems with your sitemap please visit the <a rel="external nofollow" href="http://www.arnebrachhold.de/redir/sitemap-x-faq/" title="Google (XML) sitemaps FAQ">plugin FAQ</a> or the <a rel="external nofollow" href="https://wordpress.org/support/plugin/google-sitemap-generator">support forum</a>.
复制代码


再找代码删除(这里有两处需要删除):
  1.         <div id="intro">
  2.             <p>
  3.                 This is a XML Sitemap which is supposed to be processed by search engines which follow the XML Sitemap standard like Ask.com, Bing, Google and Yahoo.<br />
  4.                 It was generated using the <a rel="external nofollow" href="http://wordpress.org/">WordPress</a> content management system and the <strong><a rel="external nofollow" href="http://www.arnebrachhold.de/redir/sitemap-home/" title="Google (XML) Sitemaps Generator Plugin for WordPress">Google Sitemap Generator Plugin</a></strong> by <a rel="external nofollow" href="http://www.arnebrachhold.de/">Arne Brachhold</a>.<br />
  5.                 You can find more information about XML sitemaps on <a rel="external nofollow" href="http://sitemaps.org">sitemaps.org</a> and Google's <a rel="external nofollow" href="http://code.google.com/p/sitemap-generators/wiki/SitemapGenerators">list of sitemap programs</a>.
  6.             </p>
  7.         </div>
复制代码


最后打开地图查看结果就行!


本站可以由注册用户自行上传图片或附件,无法鉴别所上传图片或附件的知识版权,如果侵犯,请及时通知我们,本博客将在第一时间及时删除。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

麦屯网

网站简介:专业发烧音乐试听,最新专辑,发烧器材评测,音乐影视信息交流。

联系我们

  • 反馈邮箱:sorry16817#gmail.com

麦屯博客 |网站地图

Powered by maitun.net

快速回复 返回顶部 返回列表