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

Menu 如何添加“;联系页面或自定义链接”;在OpenCart的顶部菜单栏?,menu,version,opencart,Menu,Version,Opencart,如何在OpenCart的顶部菜单栏添加“联系人页面或自定义链接” 我使用的是2.1.0.2版 如何在opencart的响应菜单中添加“主页和其他页面” 谢谢我通常会将它添加到header.tpl文件中,该文件位于catalog/view/theme/{name of theme}/template/common/header.tpl 然后查找与要添加菜单的位置相对应的li项,并通过添加带有代码的新行将其添加进去 我通常将其添加到header.tpl文件中,该文件位于目录/view/theme/{

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

我使用的是2.1.0.2版

如何在opencart的响应菜单中添加“主页和其他页面”


谢谢

我通常会将它添加到header.tpl文件中,该文件位于
catalog/view/theme/{name of theme}/template/common/header.tpl
然后查找与要添加菜单的位置相对应的
li
项,并通过添加带有代码的新行将其添加进去
  • 我通常将其添加到header.tpl文件中,该文件位于
    目录/view/theme/{name of theme}/template/common/header.tpl
    然后查找与要添加菜单的位置相对应的
    li
    项,并通过添加带有代码的新行将其添加进去
  • 转到

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

    在ul关闭前添加以下行,可能在115号行附近

    <li><a href="index.php?route=information/contact">Contact Us</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上


    我只需要在OCCMS块(index.php?route=extension/module/occmsblock/cmslist&token=)添加新链接(contact page),然后选择type as Link,将Links列填充到“index.php?route=information/contact”,创建后,只需编辑水平megamenu(在我的主题中)并添加这些新链接(contact page)它将显示在标题处。

    在我的opencart v2.3.0.2上

    我只需要在OCCMS块(index.php?route=extension/module/occmsblock/cmslist&token=)添加新链接(contact page),然后选择type as Link,将Links列填充到“index.php?route=information/contact”,创建后,只需编辑水平megamenu(在我的主题中)并添加这些新链接(contact page)它将显示在标题处