OpenCart 1.5.x. 如何管理顶级菜单
2015年2月12日
在本教程中,我们将教你如何编辑 header links in OpenCart模板.
-
进入您的OpenCart安装 directory 在服务器上使用 FTP connection or hosting control panel.
-
Find the header.tpl 文件位于 /目录/视图/主题/ themeXXX /模板/常见 folder.
-
用一些代码打开文件 editor like Dreamweaver or Notepad++. You can use the editor 直接在你的 hosting control panel as well.
-
寻找班级
-
这些链接由以下代码表示:
- " href="">
- " href="http://36.extreme-sys.com/" id="wishlist-total">
- " href="">
- " href="">
- " href="">
request->get['route'])) { $route='active'; } else {$route='';}?>
注意:代码在某些模板中可能有所不同.
-
Each “
- ” item represents a separate menu link, for example,:
- " href="http://36.extreme-sys.com/" id="wishlist-total">
-
您可以在这里更改项目的顺序,删除它们或添加新的链接. 查看本教程以了解更多如何 添加一个新的内容页,并将其链接到一个新的菜单选项卡
-
保存更改并刷新首页以检查编辑后的链接.
! 确保保存文件的副本,以防编辑后出现任何错误.
-
你可以编辑它们的标题 header links in the header.php file in /目录/语言/语言/共同/ folder.
-
The mobile view 可以在菜单中进行编辑 header.tpl file in /目录/视图/主题/ themeXXX /模板/常见 服务器上的文件夹.
-
要查找移动视图菜单,请查找 HTML class
-