Home  >  Article  >  Backend Development  >  去掉destoon资讯内容页keywords关键字自带的文章标题的方法_php实例

去掉destoon资讯内容页keywords关键字自带的文章标题的方法_php实例

WBOY
WBOYOriginal
2016-06-07 17:16:441002browse

本文实例讲述了去掉destoon资讯内容页keywords关键字自带的文章标题的方法,具体实现方法如下:

\module\article目录下的article.class.php文件中的大约158行找到:

$keyword = $item['title'].','.($item['tag'] ? str_replace(' ', ',', trim($item['tag'])).',' : '').strip_tags(cat_pos(get_cat($item['catid']), ','));

改为:

$keyword = str_replace(' ', ',', trim($item['tag']));

即可。

希望本文所述方法对大家destoon开发有所帮助。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn