douyan9417 2017-06-15 00:02
浏览 141

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

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.

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. 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

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/

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.

  • 写回答

1条回答 默认 最新

  • douguanya4248 2017-06-15 11:25
    关注

    Sorry, bro open cart is a database-backed app. 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.

    评论

报告相同问题?