HTML to nopCommerce theme

不想你离开。 提交于 2019-12-03 13:52:22
wooncherk

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.

poyker

In addition to the Designers guide there are some nice articles describing why and how to use nopCommerce themes:

Why nopCommerce Theme?

How to create nopCommerce themes

Greg

A little help here: Overview (Designer's Guide)

Carlos Martinez T

Copy all the files inside ~/Views to your Themes: ~/Themes/YourTheme/Views

Then just modify any .cshtml file inside.

I hope it helps!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!