默认的HotNews模板的类目分页是不显示在标题的,结果就是google收录了很多重复的标题内容。
为了解决收录同个标题的内容,到模板目录themes/HotNewspro/includes/找到seo.php文件。SourceByrd's Weblog-https://note.t4x.org/other/hotnews-category-page/
源代码:
[php]
[/php]
修改为:
[php]
echo ' - ' . sprintf( __( 'Page %s', 'HotNewspro' ), max( $paged, $page ) );
?>
[/php]SourceByrd's Weblog-https://note.t4x.org/other/hotnews-category-page/ SourceByrd's Weblog-https://note.t4x.org/other/hotnews-category-page/
申明:除非注明Byrd's Blog内容均为原创,未经许可禁止转载!详情请阅读版权申明!