如何将元标记添加到特价商品页面
How to add Meta Tags to the Specials page
我想向特价页面添加元标记和元描述 ( .../index.php?route=product/special )。有人可以帮忙吗?
我正在使用 OpenCart 3.0.2.0
我怎么弄清楚如何向页面添加描述,而不是元描述或元关键字,如类别和产品。
如有任何信息,我们将不胜感激。
提前致谢
编辑此文件:
catalog\controller\product\special.php
查找:
$this->document->setTitle($this->language->get('heading_title'));
在之后添加:
$this->document->setDescription('My description...');
$this->document->setKeywords('my, keyword');
我想向特价页面添加元标记和元描述 ( .../index.php?route=product/special )。有人可以帮忙吗?
我正在使用 OpenCart 3.0.2.0
我怎么弄清楚如何向页面添加描述,而不是元描述或元关键字,如类别和产品。
如有任何信息,我们将不胜感激。 提前致谢
编辑此文件:
catalog\controller\product\special.php
查找:
$this->document->setTitle($this->language->get('heading_title'));
在之后添加:
$this->document->setDescription('My description...');
$this->document->setKeywords('my, keyword');