如何在 OpenCart 的顶部菜单栏中添加“联系页面或自定义 link”?

how do I add “contact page or custom link” at top menu bar in OpenCart?

如何在 OpenCart 的顶部菜单栏添加“联系页面或自定义 link”?

我正在使用版本 2.1.0.2

如何在 opencart 的响应式菜单中添加 "homepage and other page"?

谢谢

我通常将它添加到 header.tpl 文件中,该文件位于 catalog/view/theme/{name of theme}/template/common/header.tpl 并查找与您要添加菜单的位置相对应的 li 项目,并通过添加新行代码来添加它 <li><a href="{link}">{Name of Menu Item}</a></li>

转到

catalog/view/theme/default/template/common/header.tpl

在 ul 关闭之前添加以下行,它可能在第 115 行左右。

<li><a href="index.php?route=information/contact">Contact Us</a><li>

在我的 opencart v2.3.0.2 上,

我只需要在 OC CMS Block (index.php?route=extension/module/occmsblock/cmslist&token=) 添加新的 Links(联系页面)然后选择类型 Link, 将 links 列填充到 "index.php?route=information/contact",然后在创建后,只需编辑水平 megamenu(在我的主题中)并添加那些新的 link(联系页面),它将显示在header.