HTML到nopCommerce主题 [英] HTML to nopCommerce theme

查看:134
本文介绍了HTML到nopCommerce主题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是nopCommerce的新手,并尝试将HTML制作为主题。我搜索了很多东西,但无法获得正确的方式来创建自定义主题nopCommerce,任何人都可以提供帮助,



提前致谢

解决方案

最简单的方法:


  1. 〜/ Themes / DarkOrange 复制到〜/ Themes / YOUR_THEME 。修改theme.config中的相应项目。

  2. 如果您需要更改任何视图,请从〜/ Views / SUB_FOLDER /FILE_NAME.cshtml 并将其粘贴到〜/ Themes / YOUR_THEME / SUB_FOLDER / FILE_NAME.cshtml 下。例如,如果要更改〜/ Views / Shared / _ColumnsOne.cshtml 中的代码,请复制该文件并将其粘贴到〜/ Themes / YOUR_THEME / Shared / _ColumnsOne.cshtml 下。 你不需要改变任何视图,然后修改〜/ Themes / YOUR_THEME / Content / styles.css 就足够了。 (还要确保你更新〜/ Themes / YOUR_THEME / Views / Shared / Head.cshtml 指向你的CSS)

经验法则: nopCommerce会在您的主题中查找特定的视图。如果它找不到视图,那么它会回到〜/ Views 的原始视图。否则,您的主题视图会覆盖原始视图。


I am new to nopCommerce and trying to make HTML to theme on it I googled lots of things but not able to get proper way to create customized theme nopCommerce, can any one help,

Thanks in advance

解决方案

The easiest way:

  1. Copy the folder at ~/Themes/DarkOrange to ~/Themes/YOUR_THEME. Modify the corresponding items in theme.config.

  2. If you need to change any view, copy that view from ~/Views/SUB_FOLDER/FILE_NAME.cshtml and paste it under ~/Themes/YOUR_THEME/SUB_FOLDER/FILE_NAME.cshtml.

    For example, if you want to change the code in ~/Views/Shared/_ColumnsOne.cshtml, copy that file and paste it under ~/Themes/YOUR_THEME/Shared/_ColumnsOne.cshtml.

  3. If you do not need to change any view, then modifying ~/Themes/YOUR_THEME/Content/styles.css is enough. (Also make sure you update ~/Themes/YOUR_THEME/Views/Shared/Head.cshtml to point to your CSS)

Rule of Thumb: nopCommerce will look for the specific view in your theme. If it can't find the view then it falls back to the original views at ~/Views. Otherwise your theme's views override the original views.

这篇关于HTML到nopCommerce主题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆