如何在OpenCart顶部菜单栏中添加“联系页面或自定义链接”?
我正在使用版本2.1.0.2
我如何添加"主页和其他页面"在opencart的响应式菜单中?
由于
答案 0 :(得分:2)
我通常将它添加到catalog/view/theme/{name of theme}/template/common/header.tpl
中的header.tpl文件中
并查找与您要添加菜单的位置对应的li
项,并通过添加带代码的新行添加它
<li><a href="{link}">{Name of Menu Item}</a></li>
答案 1 :(得分:0)
转到
目录/视图/主题/默认/模板/普通/ header.tpl
在ul关闭之前添加以下行,它可能在第115行附近。
<li><a href="index.php?route=information/contact">Contact Us</a><li>
答案 2 :(得分:0)
在我的opencart v2.3.0.2上,
我只需要在OC CMS Block添加新的链接(联系页面)(index.php?route = extension / module / occmsblock / cmslist&amp; token =)然后选择type作为Link,填充链接列到&#34; index.php?route = information / contact&#34;,然后在创建之后,只需编辑水平megamenu(在我的主题中)并添加这些新链接(联系页面),它将显示在标题中。