简体   繁体   English

opencart:如何添加静态html主页并更改徽标和导航栏链接

[英]opencart: How to add static html home page and change logo and navbar link to it

I am new to using Opencart and Php open source frameworks in general, and have been searching the forums and haven't found anything to create a non-default home page that is simply static html with no database it needs. 我是刚开始使用Opencart和Php开源框架的新手,并且一直在搜索论坛,但没有发现任何东西来创建非默认主页,该主页只是静态html,不需要数据库。

I was wondering how to do this in the source code, if it is possible. 我想知道如果可能的话如何在源代码中执行此操作。 So far I have created an index.html file and that shows up as the home page. 到目前为止,我已经创建了一个index.html文件,该文件显示为主页。 But when I click the logo for the site, it goes back to the index.php file, to be exact: yourstoreurl/index.php?route=common/home 但是,当我单击该站点的徽标时,确切地说,它会返回到index.php文件:yourstoreurl / index.php?route = common / home

Secondarily, I will likely want more than one static page, not just home, and would like them to show up in the navbar where the tabs for your products are displayed. 其次,我可能想要多个静态页面,而不仅仅是首页,并且希望它们显示在导航栏中,其中显示了您产品的标签。 For instance, in the default site, have navbar links for "home" which I want to be static html, and "about" which I want to be static html, before "Desktops" and "Laptops and Notebooks" https://demo.opencart.com/ 例如,在默认站点中,在“台式机”和“笔记本电脑和笔记本电脑”之前,有指向我要成为静态html的“主页”和要成为静态html的“关于”的导航栏链接https:// demo .opencart.com /

How could this be done? 怎么办呢? The reason I want to do this is to have some written content at the entrance of the site, and have html & css experience so would like to create it that way. 我要这样做的原因是在网站入口处有一些书面内容,并且具有html&css的经验,因此想以这种方式创建它。

Sorry, bro open cart is a database-backed app. 抱歉,bro open cart是一个数据库支持的应用程序。 Use a custom static web page as your home page, put your shop in a subdirectory, and put a link on the home page to the shop. 使用自定义静态网页作为主页,将您的商店放置在子目录中,然后在主页上放置指向商店的链接。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM